旧版 ubuntu 10.10

旧版 ubuntu 10.10

解释:

我有一个自带 ubuntu 10.10 的 VPS。我将其用作运行大量网站的网络服务器。我的问题是我无法升级发行版(我真正想要的)。我安装了所需的软件,但在某些时候它开始给我带来问题。我认为重要的是要说我将 source.list 从 maverick 更改为 natty。所以基本上我只是复制 natty 的源列表并将其放入 maverick 的位置。

然后我就可以安装 apache、php 等等了。

现在,当我尝试安装某些东西时,它总是出现这个错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 cpp-4.4 : Depends: libc6 (>= 2.14) but 2.13-0ubuntu13.2 is installed
 g++-4.5 : Depends: gcc-4.5 (= 4.5.2-8ubuntu4) but 4.5.3-12ubuntu2 is installed
 gcc-4.5 : Depends: gcc-4.5-base (= 4.5.3-12ubuntu2) but 4.5.2-8ubuntu4 is installed
           Depends: cpp-4.5 (= 4.5.3-12ubuntu2) but 4.5.2-8ubuntu4 is installed
           Depends: libgcc1 (>= 1:4.5.3-12ubuntu2) but 1:4.5.2-8ubuntu4 is installed
           Depends: libc6 (>= 2.14) but 2.13-0ubuntu13.2 is installed
 libc6 : Depends: libc-bin (= 2.13-0ubuntu13.2) but 2.15-0ubuntu10.3 is installed
 libgomp1 : Depends: libc6 (>= 2.14) but 2.13-0ubuntu13.2 is installed
 libmpfr4 : Depends: libc6 (>= 2.14) but 2.13-0ubuntu13.2 is installed
 libnih-dbus1 : Depends: libnih1 (= 1.0.3-4ubuntu9.1) but 1.0.3-1ubuntu1 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@348588:/var/cache/apt/archives# apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 cpp-4.4 : Depends: libc6 (>= 2.14) but 2.13-0ubuntu13.2 is installed
 g++-4.5 : Depends: gcc-4.5 (= 4.5.2-8ubuntu4) but 4.5.3-12ubuntu2 is installed
 gcc-4.5 : Depends: gcc-4.5-base (= 4.5.3-12ubuntu2) but 4.5.2-8ubuntu4 is installed
           Depends: cpp-4.5 (= 4.5.3-12ubuntu2) but 4.5.2-8ubuntu4 is installed
           Depends: libgcc1 (>= 1:4.5.3-12ubuntu2) but 1:4.5.2-8ubuntu4 is installed
           Depends: libc6 (>= 2.14) but 2.13-0ubuntu13.2 is installed
 libc6 : Depends: libc-bin (= 2.13-0ubuntu13.2) but 2.15-0ubuntu10.3 is installed
 libgomp1 : Depends: libc6 (>= 2.14) but 2.13-0ubuntu13.2 is installed
 libmpfr4 : Depends: libc6 (>= 2.14) but 2.13-0ubuntu13.2 is installed
 libnih-dbus1 : Depends: libnih1 (= 1.0.3-4ubuntu9.1) but 1.0.3-1ubuntu1 is installed
E: Unmet dependencies. Try using -f.

这是依赖性问题。我读了这个网站上的很多文章,但没有一篇对我有帮助。

有人能解决这个问题吗?谢谢

答案1

  1. 按照输出所示尝试apt-get install -f
  2. 如果这没有帮助,请尝试通过暂时删除有问题的包来恢复到一致状态。
  3. apt-get upgrade在执行 之前先从 开始apt-get dist-upgrade。如果运气好的话,你可以通过这种方式避免一些有问题的依赖性死锁。
  4. 尝试使用更新libc6软件包apt-get install libc6并查看输出以获取哪些软件包强制老的libc6 包的版本。

相关内容