新版的 libc6-dev 軟體包會造成嚴重破壞

新版的 libc6-dev 軟體包會造成嚴重破壞

我有一台mips64機器正在運作Debian WheezyGCC編譯器安裝沒有任何問題,但是連結器遇到了一些問題:

apt-get install gcc make
gcc helloworld.c -o helloworld
/usr/bin/ld: cannot find crt1.o: No such file or directory

快速的互聯網搜索表明我據稱失踪了libc6-dev,但是,這是錯誤的版本:

apt-get install libc6-dev
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.13-38+deb7u9) but 2.13-38+deb7u10 is to be installed

強制安裝:

apt-get download libc6-dev
dpkg -i --force-all libc6-dev_2.13-38+deb7u9_mips.deb

解決了問題,但現在每次我使用apt工具時,他們都會抱怨我有不相容的套件。我嘗試了以下方法:

apt-get install libc6-dev=2.13-38+deb7u9
libc6-dev : Depends: libc6 (= 2.13-38+deb7u9) but 2.13-38+deb7u10 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

另外,嘗試升級「父」包時lib6,說我已經擁有最新版本(2.13-38+deb7u9)。

這個問題是前兩天出現的(大概是libc6-dev2.13-38+deb7u10發布的時候,但沒有同版本的libc6)。有沒有辦法滿足這裡的所有依賴關係?

答案1

我發現問題是什麼,軟體包儲存庫由於某種原因沒有最新版本libc-dev-bin,因此以下解決了問題:

curl -O http://ftp.debian.org/debian/pool/main/e/eglibc/libc-dev-bin_2.13-38+deb7u10_mips.deb
dpkg -i libc-dev-bin_2.13-38+deb7u10_mips.deb
apt-get install gcc make automake autoconf linux-libc-dev
curl -O http://ftp.debian.org/debian/pool/main/e/eglibc/libc6-dev_2.13-38+deb7u10_mips.deb
dpkg -i libc6-dev_2.13-38+deb7u10_mips.deb

(它需要按這個順序)當我更改sources.list中的儲存庫時,問題仍然存在,所以我想原因會在某個時候得到解決。

答案2

我的系統安裝了 libc6-deb7u11,因此我必須將其替換為 u10。包裹位於:

http://ftp.us.debian.org/debian/pool/main/e/eglibc/libc6_2.13-38+deb7u10_mips.deb

相關內容