linux 为什么我无法安装libc 6-dev

hrirmatl  于 2022-11-28  发布在  Linux
关注(0)|答案(1)|浏览(599)

我想编译一个c文件,但在输入编译命令后出现错误。
第一个
我按照网上的方法安装了libc6-dev

~$ sudo apt 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.23-0ubuntu11.3) but 2.31-0ubuntu9.2 is to be installed
             Depends: libc-dev-bin (= 2.23-0ubuntu11.3)
E: Unable to correct problems, you have held broken packages.

所以我按照方法
第一章,绪论。第二章,绪论。
我该怎么办

vcudknz3

vcudknz31#

我有debian,但我认为this解决方案可以帮助你。这是我添加到我的/etc/apt/sources.list的新行

deb http://ftp.it.debian.org/debian bullseye-updates main contrib non-free

相关问题