GParted 无法工作

GParted 无法工作

sudo apt install gparted我使用和安装了 Gparted sudo apt install -f。当我输入 时sudo gparted,它告诉我:

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

我正在使用 Ubuntu 18.04 LTS,这不是我第一次遇到此类与库相关的问题(请参阅我发布的另一个问题)。
我在 Ubuntu 软件中发现一篇评论,告诉我 GParted 无法在 18.04 上运行,所以我认为这是与版本相关的问题。
的输出apt-cache policy gparted libgtkmm-2.4-1v5

gparted:
Installed: 0.30.0-3ubuntu1
Candidate: 0.30.0-3ubuntu1
Version table:
*** 0.30.0-3ubuntu1 500
    500 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/main amd64 Packages
    100 /var/lib/dpkg/status
libgtkmm-2.4-1v5:
Installed: 1:2.24.5-2
Candidate: 1:2.24.5-2
Version table:
*** 1:2.24.5-2 500
    500 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/main amd64 Packages
    100 /var/lib/dpkg/status

的输出grep -r -v ^# /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep ppa

/etc/apt/sources.list.d/snwh-ubuntu-pulp-bionic.list:deb http://ppa.launchpad.net/snwh/pulp/ubuntu bionic main

的输出ldd /usr/sbin/gpartedbin | grep not

libcairomm-1.0.so.1 => not found
libgiomm-2.4.so.1 => not found
libglibmm-2.4.so.1 => not found
libsigc-2.0.so.0 => not found

但是当我运行sudo apt install libglibmm-2.4-1v5(也针对其他缺失的库)时,它会显示类似

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libglibmm-2.4-1v5 is already the newest version (2.56.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

我重新安装了软件包sudo apt-get install --reinstall libcairomm-1.0-1v5 libglibmm-2.4-1v5 libsigc++-2.0-0v5并执行

ldd /usr/lib/x86_64-linux-gnu/libcairomm-1.0.so.1 | grep not
ldd /usr/lib/x86_64-linux-gnu/libgiomm-2.4.so.1 | grep not
ldd /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1 | grep not
ldd /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 | grep not

GParted 现在可以正常运行。感谢大家的真诚帮助。

答案1

我们有四个图书馆:

  • libcairomm-1.0.so.1
  • libgiomm-2.4.so.1
  • libglibmm-2.4.so.1
  • libsigc-2.0.so.0

尝试使用以下命令重新安装其软件包:

sudo apt-get install --reinstall libcairomm-1.0-1v5 libglibmm-2.4-1v5 \
libsigc++-2.0-0v5

然后检查它们的联系:

ldd /usr/lib/x86_64-linux-gnu/libcairomm-1.0.so.1 | grep not
ldd /usr/lib/x86_64-linux-gnu/libgiomm-2.4.so.1 | grep not
ldd /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1 | grep not
ldd /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 | grep not

相关内容