libc语言环境的apt-get升级失败

时间:2014-10-02 08:01:10

标签: linux ubuntu package sudo apt-get

我有一台服务器 Linux version 2.6.32-042stab085.20 (root@rh6-build-x64) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Mar 21 19:07:05 MSK 2014

我总是在升级之前使用apt-get update,但最后我在升级时总是遇到错误:

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:
 libc6 : Breaks: locales (< 2.19)
E: Unmet dependencies. Try using -f.

所以我用-f参数运行并得到这个:

Preparing to unpack .../locales_2.19-11_all.deb ...
Unpacking locales (2.19-11) over (2.13+git20120306-12.1) ...
dpkg: error processing archive /var/cache/apt/archives/locales_2.19-11_all.deb (--unpack):
 trying to overwrite '/usr/sbin/update-locale', which is also in package libc-bin 2.19-0ubuntu6.3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/locales_2.19-11_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

有人知道如何修复它吗?

0 个答案:

没有答案