Kes*_*elW 5 dependencies gparted libraries 18.04
我安装了 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
Run Code Online (Sandbox Code Playgroud)
我使用的是 Ubuntu 18.04 LTS,这不是我第一次遇到与库相关的问题(请参阅我发布的另一个问题)。
我在 Ubuntu Software 中发现评论告诉我 GParted 不能在 18.04 上运行,所以我认为这是一个与版本相关的问题。
对于输出apt-cache policy gparted libgtkmm-2.4-1v5IS
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
Run Code Online (Sandbox Code Playgroud)
对于输出grep -r -v ^# /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep ppaIS
/etc/apt/sources.list.d/snwh-ubuntu-pulp-bionic.list:deb http://ppa.launchpad.net/snwh/pulp/ubuntu bionic main
Run Code Online (Sandbox Code Playgroud)
对于输出ldd /usr/sbin/gpartedbin | grep notIS
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
Run Code Online (Sandbox Code Playgroud)
但是当我运行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.
Run Code Online (Sandbox Code Playgroud)
我重新安装了软件包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
Run Code Online (Sandbox Code Playgroud)
GParted 现在可以正常运行。感谢大家的真诚帮助。
我们有四个库:
尝试使用以下命令重新安装它们的软件包:
sudo apt-get install --reinstall libcairomm-1.0-1v5 libglibmm-2.4-1v5 \
libsigc++-2.0-0v5
Run Code Online (Sandbox Code Playgroud)
然后检查它们的链接:
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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1845 次 |
| 最近记录: |