加载共享库时出错:libgtk-x11-2.0.so.0:没有这样的文件或目录
我的操作系统是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
的库?
您的系统是64位,但由于您要运行32位版本的Firefox,因此需要安装32位版本的库:
sudo apt install libgtk2.0-0:i386
我遇到了同样的问题。 @fkraiem回答让我想出了解决我的问题的另一种可能性。
我试图在错误的架构中运行应用程序。 因此,请确保您是否尝试为系统安装32位或64位的正确应用程序。
- 无法从Ubuntu终端连接到我的VPS
- 如何删除“忽略目录/etc/apt/sources.list.d/中的文件,因为它的文件扩展名无效?
- 无法在Ubuntu 14.04中更改音量
- 在Ubuntu 14.04上安装VLC媒体播放器
- 使用Intel Broadwell-U集成显卡的Ubuntu 14.04中的图形和字体问题
- Clementine不会播放.wma,“你的GStreamer安装缺少一个插件”错误
- 如何在Ubuntu 14.04而不是Unity Greeter上获得Pantheon Greeter
- 扬声器工作正常时通过耳机没有声音
- 在单引导硬件上没有启动修复的情况下,将Ubuntu BIOS安装转换为EFI / UEFI的命令是什么?