每当我尝试使用 ubuntu 软件中心或从命令行安装任何软件时,我都会遇到此依赖关系问题。我似乎无法轻松解决依赖关系
Correcting dependencies... failed.
The following packages have unmet dependencies:
libc-dev-bin : Depends: libc6 (< 2.16) but 2.19-18 is installed
libc6 : Breaks: locales (< 2.19) but 2.13+git20120306-3 is installed
libc6:i386 : Recommends: libc6-i686:i386
Breaks: locales (< 2.19) but 2.13+git20120306-3 is installed
libc6-dbg : Depends: libc6 (= 2.15-0ubuntu10.7) but 2.19-18 is installed
libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.7) but 2.19-18 is installed
libc6-i386 : Depends: libc6 (= 2.15-0ubuntu10.7) but 2.19-18 is installed
libnih1 : PreDepends: libc6 (< 2.16) but 2.19-18 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
apt-get 缓存策略 libc-dev-bin 的输出
libc-dev-bin:
Installed: 2.15-0ubuntu10.7
Candidate: 2.15-0ubuntu10.12
Version table:
2.15-0ubuntu10.12 0
500 mirror://mirrors.ubuntu.com/mirrors.txt/ precise-updates/main amd64 Packages
500 http://rw.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
2.15-0ubuntu10.11 0
500 mirror://mirrors.ubuntu.com/mirrors.txt/ precise-security/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
*** 2.15-0ubuntu10.7 0
100 /var/lib/dpkg/status
2.15-0ubuntu10 0
500 mirror://mirrors.ubuntu.com/mirrors.txt/ precise/main amd64 Packages
500 http://rw.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
apt-cache policy libc6 的输出
Installed: 2.19-18
Candidate: 2.19-18
Version table:
*** 2.19-18 0
100 /var/lib/dpkg/status
2.15-0ubuntu10.12 0
500 mirror://mirrors.ubuntu.com/mirrors.txt/ precise-updates/main amd64 Packages
500 http://rw.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
2.15-0ubuntu10.11 0
500 mirror://mirrors.ubuntu.com/mirrors.txt/ precise-security/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
2.15-0ubuntu10 0
500 mirror://mirrors.ubuntu.com/mirrors.txt/ precise/main amd64 Packages
500 http://rw.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
apt-cache 策略区域设置的输出
locales:
Installed: 2.13+git20120306-3
Candidate: 2.13+git20120306-3
Version table:
*** 2.13+git20120306-3 0
500 mirror://mirrors.ubuntu.com/mirrors.txt/ precise/main amd64 Packages
500 http://rw.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
100 /var/lib/dpkg/status
答案1
正在解答
降级软件包libc6
并libc6:i386
sudo apt-get install libc6=2.15-0ubuntu10.12
sudo apt-get install libc6:i386=2.15-0ubuntu10.12
您已安装版本 2.19-18,此版本阻止安装libc-dev-bin
在那之后
sudo apt-get install -f