我需要在运行 Ubuntu 12.04 的 64 位 Intel 机器上安装当前版本的 Chrome。当我按照以下步骤操作时:
http://www.ubuntuupdates.org/ppa/google_chrome
一切顺利,直到最后一条命令:
sudo apt-get install google-chrome-stable
当我运行最后一个命令时,我得到了下面的输出。我该如何解决“未满足的依赖关系”?非常感谢您的帮助。
root@ECCServer:~# apt-get install google-chrome-stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
libgnome2-0 : Depends: libgnome-2-0 (= 2.32.1-5) but it is not going to be installed
libgnome2-bin : Depends: libgnome-2-0 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
答案1
基本上除了尝试强制安装之外没有其他方法可以真正解决这个问题。基本上它需要 libgnome-2.0 并且你有 2.32.1-5
如果你强制安装它,它很有可能可以与 2.32 版本兼容,一切都会很好,但是...这不能保证。由于它是作为存储库添加的,而你没有 .deb 文件...你可能可以在 找到 .deb 文件,如果/var/cache/apt/archives/
你能在那里找到它,那么你可以尝试
sudo dpkg -i --force-depends-version /var/cache/apt/archives/<name of chrome.deb>
这会将依赖版本问题转变为警告,并且应该安装,但正如我所说......不能真正保证它会正常运行