13

I can't run gparted.

I have purged and reinstalled and the error persists.

Here's the output of running sudo gparted in the terminal

$ sudo gparted
/usr/sbin/gpartedbin: error while loading shared libraries: libgtkmm-2.4.so.1: cannot open shared object file: No such file or directory

I tried to install libgtkmm-2.4 and I get this:

$ sudo apt-get install libgtkmm-2.4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libgtkmm-2.4-dev' for regex 'libgtkmm-2.4'
Note, selecting 'libgtkmm-2.4-1c2a' for regex 'libgtkmm-2.4'
Note, selecting 'libgtkmm-2.4-doc' for regex 'libgtkmm-2.4'
Note, selecting 'libgtkmm-2.4-1v5' for regex 'libgtkmm-2.4'
Note, selecting 'libgtkmm-2.4-dbg' for regex 'libgtkmm-2.4'
libgtkmm-2.4-1v5 is already the newest version.
The following extra packages will be installed:
  debhelper gir1.2-gtk-2.0 gtkmm-documentation libatk1.0-dev libatkmm-1.6-dev
  libcairo-script-interpreter2 libcairo2-dev libcairomm-1.0-dev
  libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev
  libglibmm-2.4-dev libglibmm-2.4-doc libgtk2.0-dev libgtkmm-3.0-doc
  libharfbuzz-dev libharfbuzz-gobject0 libice-dev libmail-sendmail-perl
  libpango1.0-dev libpangomm-1.4-dev libpcre3-dev libpcre32-3 libpcrecpp0v5
  libpixman-1-dev libpng12-dev libpthread-stubs0-dev libsigc++-2.0-dev
  libsm-dev libsys-hostname-long-perl libx11-dev libx11-doc libxau-dev
  libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-dev
  libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
  libxft-dev libxi-dev libxinerama-dev libxml2-utils libxrandr-dev
  libxrender-dev po-debconf x11proto-composite-dev x11proto-core-dev
  x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev
  x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
  x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
  dh-make libatkmm-1.6-doc libcairo2-doc libcairomm-1.0-doc libglib2.0-doc
  libgtkmm-3.0-dev libgtk2.0-doc libice-doc libpango1.0-doc libsigc++-2.0-doc
  libsm-doc libxcb-doc libxext-doc libmail-box-perl
The following NEW packages will be installed
  debhelper gir1.2-gtk-2.0 gtkmm-documentation libatk1.0-dev libatkmm-1.6-dev
  libcairo-script-interpreter2 libcairo2-dev libcairomm-1.0-dev
  libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev
  libglibmm-2.4-dev libglibmm-2.4-doc libgtk2.0-dev libgtkmm-2.4-dbg
  libgtkmm-2.4-dev libgtkmm-2.4-doc libgtkmm-3.0-doc libharfbuzz-dev
  libharfbuzz-gobject0 libice-dev libmail-sendmail-perl libpango1.0-dev
  libpangomm-1.4-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev
  libpng12-dev libpthread-stubs0-dev libsigc++-2.0-dev libsm-dev
  libsys-hostname-long-perl libx11-dev libx11-doc libxau-dev
  libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-dev
  libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
  libxft-dev libxi-dev libxinerama-dev libxml2-utils libxrandr-dev
  libxrender-dev po-debconf x11proto-composite-dev x11proto-core-dev
  x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev
  x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
  x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev
0 to upgrade, 65 to newly install, 0 to remove and 0 not to upgrade.
Need to get 46.4 MB of archives.
After this operation, 332 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

This says that it is already installed however it wants to install a ton of extras with a load of dependencies which I'm reluctant to do given that it says that the specific package that it is complaining about is already installed so have my doubts these extras would resolve anything.

How should I proceed?

  • What happens when you run sudo apt-get install -f – Neil Oct 29 '15 at 20:35
  • It doesn't do anything. O to upgrade, newly install, remove or not upgrade. I suspect this is because it installs gparted without issue therefore as far as apt is concerned there is no dependency conflict which requires -f to be run. – Eamonn Doyle Oct 29 '15 at 20:46
  • I think you install this sudo apt-get install libgtkmm-2.4-1v5 libatkmm-1.6-1v5 – Neil Oct 29 '15 at 20:53
  • When I run those I get libatkmm-1.6-1v5 is already at the newest version, libatkmm-1.6-1v5 is set to be manually installed and libgtkmm-2.4-1v5 is already at the newest version. Now those first two are identically named packages therefore how can it say the first is at the newest version and for the second which is the exactly named same named as first package is set to be manually installed. Confused. – Eamonn Doyle Oct 29 '15 at 20:54
  • hmm try removing these packages gparted libatkmm-1.6-1v5 libgtkmm-2.4-1v5 libgtkmm-3.0-1v5 pavucontrol then install them. – Neil Oct 29 '15 at 21:03
14

Try removing these packages gparted libatkmm-1.6-1v5 libgtkmm-2.4-1v5 libgtkmm-3.0-1v5 pavucontrol type in this command.

sudo apt-get remove gparted libatkmm-1.6-1v5 libgtkmm-2.4-1v5 libgtkmm-3.0-1v5 pavucontrol 

and then install ubuntu-desktop if it removes it.

sudo apt-get install ubuntu-desktop gparted libatkmm-1.6-1v5 libgtkmm-2.4-1v5 libgtkmm-3.0-1v5 pavucontrol
  • More libraries were missing on my side, @Pablo Rierra answer helped me fix them. – Vladimir Iliev May 24 '18 at 7:10
8

Just after Bionic's fresh install, the missing libraries used by GParted can be installed with:

sudo apt-get install --reinstall libgtkmm-2.4-1v5 libatkmm-1.6-1v5 libpangomm-1.4-1v5 libglibmm-2.4-1v5 libsigc++-2.0-0v5 libcairomm-1.0-1v5
7

This command worked for me

sudo apt install --reinstall libgtkmm-2.4-1v5
  • In my case I do this for few more libraries, but at the end it worked. Thanks. – Vladimir Iliev May 24 '18 at 7:09
  • I had to do these two too sudo apt install --reinstall libsigc++-2.0-0v5 sudo apt install --reinstall libglibmm-2.4-1v5 – Anwar Jun 14 '18 at 8:17
  • and on top of the last comment, I also needed to do sudo apt install --reinstall libcairomm-1.0-1v5 – Tim Richardson Aug 16 '18 at 20:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.