较新版本的 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

相关内容