加载共享库时,GParted无法正常工作:libgtkmm-2.4.so.1


13

我不能跑步。

我已清除并重新安装,错误仍然存​​在。

这是sudo gparted在终端中运行的输出

$ 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

我试图安装libgtkmm-2.4,我得到了:

$ 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] 

这说它已经安装了,但是它想安装大量带有依赖项的附加组件,我不愿意这样做,因为它说它正在抱怨的特定软件包已经安装了,所以我对这些附加组件表示怀疑将解决任何问题。

我应该如何进行?


当您跑步时会发生什么sudo apt-get install -f
Neil 2015年

它什么也没做。O升级,新安装,删除或不升级。我怀疑这是因为它安装了gparted却没有问题,因此就apt而言,没有依赖项冲突,需要运行-f。
Eamonn Doyle

我想您安装了这个sudo apt-get install libgtkmm-2.4-1v5 libatkmm-1.6-1v5
Neil

当我运行这些文件时,我得到libatkmm-1.6-1v5已经是最新版本,libatkmm-1.6-1v5已设置为手动安装,而libgtkmm-2.4-1v5已经是最新版本。现在,前两个软件包的名称相同,因此如何说第一个软件包是最新版本,而第二个软件包的名称与第一个软件包名称完全相同,则设置为手动安装。困惑。
Eamonn Doyle

嗯,尝试删除这些软件包, gparted libatkmm-1.6-1v5 libgtkmm-2.4-1v5 libgtkmm-3.0-1v5 pavucontrol 然后安装它们。
尼尔

Answers:


14

尝试gparted libatkmm-1.6-1v5 libgtkmm-2.4-1v5 libgtkmm-3.0-1v5 pavucontrol在此命令中删除这些软件包类型。

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

然后将其删除,然后安装ubuntu-desktop。

sudo apt-get install ubuntu-desktop gparted libatkmm-1.6-1v5 libgtkmm-2.4-1v5 libgtkmm-3.0-1v5 pavucontrol

我身边缺少更多的图书馆,@ Pablo Rierra的回答帮助我修复了它们。
弗拉基米尔·伊利耶夫(Fladimir Iliev)'18年

9

在Bionic全新安装之后,GParted使用的缺少的库可以安装在:

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

如果您在全新安装中缺少库,则应考虑报告错误
Melebius

据报道这是一个错误,请参阅:[缺少gparted的libgtkmm依赖项](bugs.launchpad.net/ubuntu/+source/gparted/+bug/1772317)。它与Wayland有关。另请参阅:[gparted无法启动](bugs.launchpad.net/ubuntu/+source/gparted/+bug/1748989)。它与错误的安装无关,因为我是在全新安装时遇到的。
eyoung100 '18 -10-4

@ eyoung100-再次检查我在安装程序磁盘和已安装的系统18.04中都没有Wayland的情况下运行。
Craig Hicks

Wayland是18.04中的默认设置。如果删除了它,那很好,但是仍然需要gtkmm。参见Ubiquity Installer Bug
eyoung100'1

这对我来说仿生。但是,不是很新鲜的安装。
尤金(Eugene Gr)。Philippov

7

这个命令对我有用

sudo apt install --reinstall libgtkmm-2.4-1v5

以我为例,我为另外几个库执行此操作,但最后它起作用了。谢谢。
Vladimir Iliev

我也必须做这两件事sudo apt install --reinstall libsigc++-2.0-0v5 sudo apt install --reinstall libglibmm-2.4-1v5
Anwar

在最后一条评论的顶部,我还需要执行sudo apt install --reinstall libcairomm-1.0-1v5
Tim Richardson
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.