加载共享库时出错:libgtk-x11-2.0.so.0:无此类文件或目录


26

我的操作系统是Ubuntu 14.04。我正在尝试下载aa 3.6.x firefox版本。我得到了这个。根据自述文件,我要做的就是解压缩,进入文件夹并运行./firefox。但是,这样做时出现以下错误:

./firefox-bin: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot 
open shared object file: No such file or directory.

但是当我运行时locate libgtk-x11,它已安装:

/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.23

有人知道在哪里./firefox找吗?我的猜测是我必须在文件夹之间创建链接,但我不知道该链接。


编辑1:安装libgtk2.0-0:i386并尝试./firefox再次运行后,找不到库libgobject-2.0。我尝试使用安装它们sudo apt-get install libglib2.0:i368,但得到:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libglib2.0-0-refdbg:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dbg:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dev:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-data:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-doc:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0-dbg:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-bin:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil-dev:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-tests:i386' for regex 'libglib2.0'
Note, selecting 'libglib2.0-data' instead of 'libglib2.0-data:i386'
Note, selecting 'libglib2.0-doc' instead of 'libglib2.0-doc:i386'
libglib2.0-data is already the newest version.
libglib2.0-doc is already the newest version.
libglib2.0-0:i386 is already the newest version.
libglib2.0-0:i386 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libglib2.0-cil:i386 : Depends: cli-common:i386 (>= 0.5.6) but it is not installable
                       Depends: libmono-corlib4.0-cil:i386 (>= 2.10.1) but it is not installable
                       Depends: libmono-system4.0-cil:i386 (>= 2.10.7) but it is not installable
E: Unable to correct problems, you have held broken packages.

也许libglib2不是包含的库libgobject

Answers:


47

您的系统是64位的,但是由于您要运行32位版本的Firefox,因此需要安装32位版本的库:

sudo apt install libgtk2.0-0:i386

谢谢!我现在libgobject-2.0找不到了,我已经尝试过使用sudo apt-get install libglib2.0:i368,但是cli-common:i368无法安装诸如之类的依赖项。有任何想法吗?我应该在虚拟盒子中安装32位系统吗?
regina_fallangi

我不确定为什么要拉cli-common,请编辑您的问题以添加的完整输出apt install libglib2.0-0:i386
fkraiem

它解释libglib2.0-0:i368为正则表达式,并尝试安装许多数据包。我正在寻找的正确库libgobject-2.0。还是您认为这是另外一回事?(编辑已完成)
regina_fallangi 2016年

确实libglib2.0-0不是libglib2.0
fkraiem

之后sudo apt-get install libglib2.0-0:i386libjobject-2.0.so.o仍然找不到库。不过,感谢您的纠正。
regina_fallangi

2

我遇到了同样的问题。@fkraiem的答案使我想出了解决我的问题的另一种可能性。

我试图在错误的体系结构中运行应用程序。因此,请确保您要尝试为系统安装32位或64位正确的应用。

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.