我安装了 Gpartedsudo apt install 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 Software 中发现一条评论告诉我 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 现在可以正常运行。感谢大家真诚的帮助。
我们有四个库:
尝试使用以下命令重新安装他们的软件包:
然后检查他们的联系: