通常情况下,sudo apt-get install 可以毫无问题地得到我想要的东西,它会安装依赖项并省去很多麻烦。由于某种原因,它现在停止工作了。
$ sudo apt-get install libssl0.9.8
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.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libssl0.9.8: Depends: libc6 (>= 2.7) but 2.6.1-1ubuntu10 is to be installed
E: Broken packages
似乎在安装它所依赖的 libc6 时遇到了问题,但是当我运行 apt-get install libc6 时,它告诉我它已安装并且是最新的。
我在安装 openssl 时遇到了类似的问题。
我尝试运行 apt=get update,但没有帮助。
答案1
答案2
您需要执行 apt-get upgrade,而不是 cherry pick libssl,因为它依赖于较新版本的 libc。