2

Title, when I try to run it from terminal it says this after asking for permission.

$ gparted
Unit -.mount does not exist, proceeding anyway. /usr/sbin/gpartedbin:
error while loading shared libraries: libgtkmm-2.4.so.1: cannot open
shared object file: No such file or directory

First day using linux, what does this mean? I thought it meant I was missing something so I tried to download it, it put out:

$ sudo apt install gparted
Reading package lists... Done Building dependency tree
Reading state information... Done
gparted is already the newest version (0.30.0-3ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt install --reinstall gparted
Reading package lists... Done Building dependency tree
Reading state information... Done 
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/505 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 192326 files and directories currently installed.)
Preparing to unpack .../gparted_0.30.0-3ubuntu2_i386.deb ...
Unpacking gparted (0.30.0-3ubuntu2) over (0.30.0-3ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Setting up gparted (0.30.0-3ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...

Any ideas? I can't seem to find anything on the internet that fixes this problem. Running Xubuntu 18.04.3, so I don't have other ways to format my usb.

  • You can always try to reinstall gparted by running sudo apt install --reinstall gparted from a terminal window. – Terrance Aug 10 at 23:14
  • It means that this library is not installed, or has been corrupted. Do you have the package libgtkmm-2.4-1v5 installed? – ajgringo619 Aug 10 at 23:14
  • @Terrance I just did that and I get the same error when I try to run it. – Path Aug 10 at 23:20
  • Update: I think I do have it installed. I tried to install it and this is what it said. Reading package lists... Done Building dependency tree Reading state information... Done libgtkmm-2.4-1v5 is already the newest version (1:2.24.5-2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. – Path Aug 10 at 23:56
  • 3
1

identify missing libaries with ldd /usr/sbin/gpartedbin | grep not

You can find the packages with apt-file search string of missing libary. You have to install it first

sudo apt install apt-file && sudo apt update  

Example

apt-file search libgtkmm-2.4.so.1
libgtkmm-2.4-1v5: /usr/lib/i386-linux-gnu/libgtkmm-2.4.so.1
libgtkmm-2.4-1v5: /usr/lib/i386-linux-gnu/libgtkmm-2.4.so.1.1.0
0

Any ideas? I can't seem to find anything on the internet that fixes this problem. Running Xubuntu 18.04.3, so I don't have other ways to format my usb.

If what you need is to format your USB stick:

A quick and easy GUI option would be to use gnome-disks. It serves the same purpose.

To install it, please run in the terminal:

sudo apt install gnome-disk-utility

To use it, please run in the terminal:

gnome-disks

An alternate command line option works as follows:

  1. Plug in your USB stick.

  2. Identify your USB stick by running the following command int he terminal:

    df -H

    The output will look something more or less like this:

    Filesystem Size Used Avail Use% Mounted on

    /dev/sda1 738M 192M 493M 28% /boot

    /dev/sdb1 2G 2G 0 100% /media/user_name/usb_name

    You could easily identify your USB stick by size:

    In this case the USB stick size is 2G, so it is /dev/sdb1

  3. Unmount your USB stick by running the following command in the terminal:

    sudo umount /dev/sdb1

  4. Format your USB stick by running the following command in the terminal:

    sudo mkfs.vfat /dev/sdb1

  • 1
    I'll try this thank you! – Path Aug 11 at 5:04

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.