mojira.dev

anto77562

Assigned

No issues.

Comments

I wrote a script to automatically download, unpack, modify, repack, and install the minecraft .deb installer. ive broken it down line by line so that its clear what is happening. I’ve tested this on ubuntu 25.01 and 26.04, but it should work on all other (modern) ubuntu/ubuntu based distros, and most debian based distros in general. hopefully this helps people who dont want to fuck around with things manually.

# setting up a temporary working directory to do stuff in
sudo mkdir /tmp/minecraft_working_dir

# moving to that new directory
cd /tmp/minecraft_working_dir

# downloading the minecraft installer .deb file from the official MC website
sudo wget -q https://launcher.mojang.com/download/Minecraft.deb

# unpacking the .deb
sudo dpkg-deb -R Minecraft.deb temp_work_dir

# removing the original .deb file
sudo rm Minecraft.deb

# moving to the directory with the dependancies control file in it
cd /tmp/minecraft_working_dir/temp_work_dir/DEBIAN

# modifying the debian dependancies control file
sudo perl -pi -e 's/libgdk-pixbuf2.0-0 \(>= 2.22.0\)/libgdk-pixbuf2.0-0 \(>= 2.22.0\) | libgdk-pixbuf-2.0-0 \(>= 2.22.0\)/g' control

# moving back to the temporary working directory
cd /tmp/minecraft_working_dir

# re-packing the corrected files into a new .deb
sudo dpkg-deb -b temp_work_dir Minecraftfixed.deb

# actually installing the new fixed .deb file
sudo apt-get -y install ./Minecraftfixed.deb

# moving out of the temporary working directory
cd /tmp

#removing the temporary working directory and its contents since it is no longer needed
sudo rm -rf minecraft_working_dir

To use this script, simply copy and paste it into the terminal and run it. since it uses sudo, it'll ask for your password.

(i do just want to note that generally its bad practice to copy/paste random code you find online into the terminal and then run it. thats why i’ve broken down what everything does here, to make it easier to verify. you can google the various commands and make sure that they do what they're labeled as. or you could just run this script without verifying it if you feel like it.)

I can post my script here later for people to accomplish this automatically. My whole point in this bug report is to make it clear to whoever closed the other people's tickets that this issue has not been resolved.

Also apparently my code block was fucked up… oops.

Oh I'm aware of what the problem is and I wrote a script to automatically download, fix, and install the launcher and gave it to a few of my friends. I just wanted to open another bug report for this bug since the other ones are closed and this issue has clearly not been fixed.

The way I fixed it is by editing the control file and changed part of it from

`libgdk-pixbuf2.0-0 (>= 2.22.0)`

To

`libgdk-pixbuf2.0-0 (>= 2.22.0) || libgdk-pixbuf-2.0-0 (>= 2.22.0)`

i should have added to the bug report before submiting. the steps to reproduce this bug are as follows:

  1. have any machine with ubuntu 25.10 installed

  2. download the official minecraft.deb file from the minecraft website

  3. try to install the file

  4. the error will present itself.