Apt

使用 apt-get 時出現“損壞的包”

  • June 8, 2015

我嘗試使用 cpanm 安裝 MIME::Base64,這給了我 sys/types.h 失去的錯誤。然後我嘗試安裝 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+deb7u8) but 2.19-11 is to be installed
            Depends: libc-dev-bin (= 2.13-38+deb7u8)
E: Unable to correct problems, you have held broken packages.

我希望有人知道解決方案並可以幫助我

似乎您正在嘗試在 Debian 7 系統(2.13-38+deb7u8)上安裝 Debian 8 libc6(2.19-11)。檢查您/etc/apt/sources.list的任何奇怪條目。

引用自:https://serverfault.com/questions/697377