![无法更正依赖项:libc6](https://linux22.com/image/880113/%E6%97%A0%E6%B3%95%E6%9B%B4%E6%AD%A3%E4%BE%9D%E8%B5%96%E9%A1%B9%EF%BC%9Alibc6.png)
安装软件后,Ubuntu 正确启动但 Unity 没有显示(仅显示桌面图标)。
我试过: sudo apt-get -f install
user@pc:~$ sudo apt-get -f install
[sudo] password for user:
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
Correzione delle dipendenze... non riuscita.
I seguenti pacchetti hanno dipendenze non soddisfatte:
libc-dev-bin : Dipende: libc6 (< 2.16)
libc6 : Rompe: libc6:i386 (!= 2.18-0ubuntu4) ma la versione 2.15-0ubuntu10.13 è installata
libc6:i386 : Rompe: libc6 (!= 2.15-0ubuntu10.13)
libc6-dev : Dipende: libc6 (= 2.15-0ubuntu10.13)
libc6-i386 : Dipende: libc6 (= 2.15-0ubuntu10.13)
libnih1 : Pre-dipende: libc6 (< 2.16)
E: Errore, pkgProblemResolver::Resolve ha generato delle interruzioni. Questo potrebbe essere causato da pacchetti bloccati.
E: Impossibile correggere le dipendenze
这是意大利的装置艺术:“Rompe” = “Breaks”,“Dipende” = “Depends”
我该如何解决这个问题?
编辑翻译
user@pc:~$ sudo apt-get -f install
[sudo] password for user:
Reading package lists ... Done
dependency tree generation
Reading state information ... Done
Correcting dependencies ... failed.
The following packages have unmet dependencies :
libc - dev - bin : Depends: libc6 ( < 2.16)
libc6 : Breaks : libc6 : i386 ( ! = 2.18-0ubuntu4 ) but 2.15-0ubuntu10.13 version is installed
libc6 : i386 : Breaks : libc6 ( ! = 2.15-0ubuntu10.13 )
libc6 - dev : Depends: libc6 ( = 2.15-0ubuntu10.13 )
libc6 - i386 : Depends: libc6 ( = 2.15-0ubuntu10.13 )
libnih1 : Pre -Depends : libc6 ( < 2.16)
E: Error , pkgProblemResolver :: Resolve generated breaks. This could be caused by held packages .
E: Unable to correct dependencies
答案1
编辑/etc/apt/sources.list
添加以下行:
deb http://security.ubuntu.com/ubuntu precise-security main
更新并输入:
sudo apt-get -f install
sudo apt-get build-dep your_package_name
编辑
类型:
sudo apt-get remove libc6:i386=2.18-0ubuntu4
然后:
sudo apt-get install libc6=2.15-0ubuntu10.13
sudo apt-get install libc6:i386=2.15-0ubuntu10.13