问题
所以我在从 Ubuntu 服务器 8.04->10.04->12.04 升级后遇到了这个问题。
初始命令
apt-get install -f
dpkg: warning: files list file for package `tcpd' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `python-pkg-resources' missing, assuming package has no files currently installed.
.... Many many more of these warnings
dpkg: warning: files list file for package `libxml-libxml-perl' missing, assuming no files currently installed.
(Reading database ... 1126 files and directories currently installed.)
Preparing to replace libc6 2.15-0ubuntu10 (using .../libc6_2.15-0ubuntu10.5_i386.deb) ...
A copy of the C library was found in an unexpected directory:
'/lib/i386-linux-gnu/libc-2.15.so'
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library or get it out of
'/lib/i386-linux-gnu' and try again.
dpkg: error processing /var/cache/apt/archives/libc6_2.15-0ubuntu10.5_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.15-0ubuntu10.5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试过的事情
- 我尝试移动 libc-2.15.so 但这会产生错误:
apt-get: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
apt-get --purge remove libc6
这将无法libc6
按系统需要工作sudo apt-get install --reinstall libc6=2.15-0ubuntu10.5 libc6-dev=2.15-0ubuntu10.5
只是猜测工作,但这也没有用。
无论如何,正如你所看到的,我被卡住了,我无法升级我的任何软件包......
跑 :
如果以上是否成功,请运行:
在生成的 gedit 中,删除以 开头的整个部分:
Package : libc6
然后运行更新。如果这没有解决,您需要格式化。
您可以按照以下步骤进行操作!它会将您的设置转变为Debian Experimental,其中包含处于开发的 alpha 阶段的软件包。它还可能在此过程中损坏您的系统。引用 Debian FAQ:
将此添加到
sources.list
:接下来,运行:
然后,从文件中删除或注释掉这一行
sources.list
:最后,再次更新您的包缓存。
在此之后你将能够使用 libc6 >= 2.17