Ubuntu postfix 安装错误:试图覆盖'/usr/sbin/validlocale',它也在 libc-bin 0:2.10.1-0ubuntu18 包中

dsh*_*rma 5 ubuntu upgrade

我正在尝试使用命令在 Ubuntu 10.04 上安装 Postfix,sudo apt-get install postfix但出现如下所示的错误:

Preconfiguring packages ...
(Reading database ... 164023 files and directories currently installed.)
Preparing to replace locales 2.9+git20090617-3 (using .../locales_2.11.2-7_all.deb) ...
Unpacking replacement locales ...
dpkg: error processing /var/cache/apt/archives/locales_2.11.2-7_all.deb (--unpack):
 trying to overwrite '/usr/sbin/validlocale', which is also in package libc-bin 0:2.10.1-0ubuntu18
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/locales_2.11.2-7_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

Gil*_*il' 4

您的系统不是最新的 10.04,该版本是随软件包版本2.11.1-0ubuntu7libc-bin现已2.11.1-0ubuntu7.5因安全升级而被取代)和软件包版本一起2.11+git20100304-3发布的locales。安装 Postfix 软件包需要升级locales,但新版本locales与您现在拥有的版本不兼容libc-bin。这是一个错误,该locales包没有声明也会导致libc-bin升级的依赖项。

\n\n

尽管如此,你还是做错了两件事。首先,你不应该尝试运行混合业力/清醒系统。这在技术上是可行的,但不可取,并且会导致各种问题,例如您遇到的问题。其次,您应该启用安全升级。

\n\n

如果您使用的是 GUI,请调出 \xe2\x80\x9c软件源\xe2\x80\x9d 并确保 \xe2\x80\x9c重要安全更新\xe2\x80\x9d 和 \xe2\x80\x9c推荐更新\ xe2\x80\x9d 在 \xe2\x80\x9cUpdates\xe2\x80\x9d 选项卡中检查。然后调出\xe2\x80\x9c更新管理器\xe2\x80\x9d并执行升级到10.04。

\n\n

如果您使用命令行,请确保/etc/apt/sources.list至少包含以下行:

\n\n
deb http://fr.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse\ndeb http://fr.archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse\ndeb http://security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse\n
Run Code Online (Sandbox Code Playgroud)\n\n

(如果restricteduniverse和位于与 具有相同前缀multiverse的单独行上,则可以。)然后安装Install update-manager-core http://bit.ly/software-small软件包并运行,或运行。deb ... lucid-...mainupdate-manager-core sudo do-release-upgradesudo apt-get update; sudo apt-get dist-upgrade

\n\n

另请参阅清醒升级;除了本页上的信息之外,请注意,您似乎没有启用安全更新,并且自动化过程可能无法处理该问题。

\n