申明:本帖只是此帖:Debugging Dpkg Problems的一个简化.
问题描述:
$sudo apt-get update
$sudo dpkg -i /var/cache/apt/archives/libc6_2.4-1Ubuntu10_i386.deb
>Preparing to replace libc6 2.4-1ubuntu6 (using …/libc6_2.4-1ubuntu10_i386.deb) …
>Matching libraries: /usr/lib/libpthread.so.20 /lib/ld-linux.so.2
>A copy of glibc was found in an unexpected directory.
>…
>dpkg: error processing /var/cache/apt/archives/libc6_2.4-1ubuntu10_i386.deb (–install)…
解决简化:
//据引用帖知,问题与libpthread包有关联
1.查看libpthread:
$sudo dpkg -l | grep libpthread
>ii libpthread20 2.0.7-2ubuntu2 The GNU Portable Threads (pthread emulation)
2.卸载libpthread:
$sudo apt-get remove –purge libpthread
//若能顺利删除则可执行(然后第4步):
$sudo apt-get update && sudo apt-get dist-upgrade
//若不能卸载libpthread,则须进行下一步
3.手动mv掉libpthread,然后再尝试升级:
$sudo mkdir /usr/lib/temp
$sudo mv /usr/lib/libpthread* /usr/lib/temp/
$sudo apt-get update && sudo apt-get dist-upgrade
4.最后得将libpthread复原,否则系统会出问题:
$sudo mv /usr/lib/libpthread* /usr/lib/
$sudo rm -r /usr/lib/temp
libc6升级失败的问题描述与解决方法
转载请注明出处:服务器评测 » libc6升级失败的问题描述与解决方法