旧版 ubuntu breezy apt/dpkg 损坏

旧版 ubuntu breezy apt/dpkg 损坏

我们有一台旧的 ubuntu breezy 服务器,过去有人尝试升级它,但没有成功。我们需要升级它,但几乎所有的 apt-get 操作都返回如下内容:

apt-get install -f

Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line >17.
dpkg: dependency problems prevent configuration of apt:
dpkg (1.14.5ubuntu16) breaks apt (<< 0.7.6ubuntu6) and is installed.
Version of apt to be configured is 0.6.43.3ubuntu2.
dpkg: error processing apt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apt-utils:
apt-utils depends on libapt-pkg-libc6.3-6-3.11; however:
Package libapt-pkg-libc6.3-6-3.11 is not installed.
Package apt which provides libapt-pkg-libc6.3-6-3.11 is not configured yet.
dpkg: error processing apt-utils (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of aptitude:
aptitude depends on libapt-pkg-libc6.3-6-3.11; however:
Package libapt-pkg-libc6.3-6-3.11 is not installed.
Package apt which provides libapt-pkg-libc6.3-6-3.11 is not configured yet.
dpkg (1.14.5ubuntu16) breaks aptitude (<< 0.4.6.1-1ubuntu2) and is installed.
Version of aptitude to be configured is 0.4.0-5ubuntu3.
dpkg: error processing aptitude (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apt
apt-utils
aptitude
E: Sub-process /usr/bin/dpkg returned an error code (1)

关于如何纠正此问题,您有什么想法吗,以便我们可以一次升级一个版本(或最高升级到 10.04)

答案1

dpkg安装了 Gutsy 的 1.14.5ubuntu16,并尝试apt从 Dapper 更新到 0.6.43.3ubuntu2,但此apt版本与已安装的版本不兼容dpkg(并且很可能与当前安装的 apt 版本不兼容)。

如果您确实想要升级,请将您的 sources.list 更改为使用 gutsy(http://old-releases.ubuntu.com/ 有它)。然后apt从 Gutsy 手动下载并安装(以及它所需的任何内容)并尝试dist-upgrade

但是我会考虑全新安装,因为 Dapper 和 Gutsy 的混合听起来很难看,而且如果仍然留有一些来自 Breezy 的包,那也不会变得更好。

相关内容