我试图安装一些具有依赖链的软件包,最后需要底层的libc6和libc6-dev。
我在GCE中设置了几台使用debian wheezy(全新安装)的机器,并在尝试安装libc6-dev时遇到这些错误:
# apt-get install libc6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.13-38) but 2.17-93ubuntu4 is to be installed
Depends: libc-dev-bin (= 2.13-38)
E: Unable to correct problems, you have held broken packages.
# apt-cache policy libc6
libc6:
Installed: 2.17-93ubuntu4
Candidate: 2.17-93ubuntu4
Version table:
*** 2.17-93ubuntu4 0
100 /var/lib/dpkg/status
2.13-38 0
500 http://gce_debian_mirror.storage.googleapis.com/ wheezy/main amd64 Packages
500 http://http.debian.net/debian/ wheezy/main amd64 Packages
# apt-cache policy libc6-dev
libc6-dev:
Installed: (none)
Candidate: 2.13-38
Version table:
2.13-38 0
500 http://gce_debian_mirror.storage.googleapis.com/ wheezy/main amd64 Packages
500 http://http.debian.net/debian/ wheezy/main amd64 Packages
# cat /etc/apt/sources.list
deb http://gce_debian_mirror.storage.googleapis.com/ wheezy main
deb-src http://gce_debian_mirror.storage.googleapis.com/ wheezy main
deb http://http.debian.net/debian wheezy main
deb-src http://http.debian.net/debian wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
我查了一下libc6-2.17-93ubuntu4版本,它看起来像是为了俏皮而不是喘息。
这是由于Google正在使用的自定义喘息内核吗?
有关如何安装这些软件包的任何提示?
感谢。
答案 0 :(得分:1)
我刚创建了一个新的wheezy实例并执行了“apt-get install libc6-dev”而没有问题。我认为你的其他一个软件包会导致依赖性冲突。
注入的内核未连接到apt-get,因此不会导致依赖安装问题。