Problem with installing GParted

Hello! Please excuse me if the solution to this topic seems obvious to some of the more experienced users but since I have used Ubuntu MATE for little more than a month, it plagues me and I can’t find a reasonable answer to my question anywhere on the web.

I am trying to install GParted but the installation gives me the following error:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gparted : Depends: libparted-fs-resize0 (>= 3.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

At first when searching Google for this error, it seemed to me that the boot partition may be too small but then again this package should not even require that much space. Anyways, someone said to use the command df -h and here it is:

Filesystem      Size  Used Avail Use% Mounted on
udev            1,9G     0  1,9G   0% /dev
tmpfs           383M  6,2M  377M   2% /run
/dev/sda7        60G   40G   18G  70% /
tmpfs           1,9G   30M  1,9G   2% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
tmpfs           1,9G     0  1,9G   0% /sys/fs/cgroup
/dev/loop0      8,7M  8,7M     0 100% /snap/pulsemixer/1
/dev/loop2      163M  163M     0 100% /snap/spotify/6
/dev/loop1       84M   84M     0 100% /snap/core/3748
/dev/loop3      315M  315M     0 100% /snap/pycharm-professional/55
/dev/loop4       82M   82M     0 100% /snap/core/4110
/dev/loop5      7,7M  7,7M     0 100% /snap/pulsemixer/8
/dev/loop6       82M   82M     0 100% /snap/core/4206
/dev/sda2       256M   53M  204M  21% /boot/efi
tmpfs           383M   36K  383M   1% /run/user/1000

It was also suggested to reinstall grub which I also did, the same problem unfortunately persisted.

I also tried to find out what package could be causing this trouble and so I tried this:

~$ sudo apt install libparted-fs-resize0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libparted-fs-resize0 : Depends: libparted2 (= 3.2-18) but 3.2-18ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.

~$ sudo apt install libparted2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libparted2 is already the newest version (3.2-18ubuntu0.1).

I also have to mention that I do not have any old kernel files.
So for the life of me I can’t understand why my system wont allow me to install this app.

I hope I wont have to reinstall MATE with different partitions to fix this problem. Anyway, before closing this thread, I have to mention that after trying countless Linux distros, Ubuntu MATE is the one I finally found to be the best of every world, both performance and functionality-wise. So even if I wont be able to solve this problem, I really enjoy using the OS and I want to thank the developers and the community for making it such a wonderful experience!

It seems that you are using 17.10, libparted2 3.2-18ubuntu0.1 is located in artful-updates, so you package manager is working normally.

As usual you may try the following:

sudo apt-get update
sudo apt-get install -f
sudo apt-get dist-upgrade
sudo apt-get install gparted

Thank you for replying!

I have tried all of the steps you suggested and the problem still remains exactly the same. Install -f and dist-upgrade both say 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded, so I assume my system and packages are up do date?

Hi @Jyriiiii, take a look in Software & Updates tab "Updates".
Be sure "Recommended updates" is checked and be sure to update before trying again.

How I got here....

And a big clue from synaptic

I then unchecked artful-updates and reproduced the issue.

1 Like

Thank you very much!! Your advice worked perfectly and I finally got GParted installed! Any idea why the recommended updates are unchecked by default?

Great! I got my info from a virtual machine and it was already checked by default. How it got unchecked on your install is the mystery.

I’m pretty sure if it was unchecked from the start you wouldn’t see this problem - the change did it creating a mix of versions and gparted is very picky.

As a possible clue, this can be affected by files in /etc/apt which are controlled by these checks. This GUI makes it easier but manually altering/editing files does the same as the checks.

Good luck!

Thank you for solving the problem and elaborating further!

Best of luck to you, too!