我想编译一个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.
所以我按照方法
第一章,绪论。第二章,绪论。
我该怎么办
1条答案
按热度按时间vcudknz31#
我有debian,但我认为this解决方案可以帮助你。这是我添加到我的/etc/apt/sources.list的新行