我的操作系统是 Ubuntu 14.04。我正在尝试下载 3.6.x 版本的 Firefox。我得到了这个。根据 README,我所要做的就是解压,进入文件夹并运行./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
?
答案1
您的系统是 64 位的,但由于您要运行 32 位版本的 Firefox,因此您需要安装 32 位版本的库:
sudo apt install libgtk2.0-0:i386
答案2
我遇到了同样的问题。@fkraiem 的回答让我找到了解决我的问题的另一种可能性。
我尝试在错误的架构中运行应用程序。因此,请确保您尝试安装的应用程序适合您的系统(32 位或 64 位)。