apt-get 很奇怪

apt-get 很奇怪

通常情况下,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

我不是这方面的专家,但问题似乎在于这些软件包不再受支持(即使是旧版本的服务器)。

经过大量研究(我通过 SSH 在远程服务器上执行此操作,因此不会出现任何问题)以下内容似乎很有帮助:

升级 Gutsy

此外,这里还有一个更通用的指南,用于从 Breezy 5.10 升级到最新版本这里

答案2

您需要执行 apt-get upgrade,而不是 cherry pick libssl,因为它依赖于较新版本的 libc。

相关内容