sudo apt-get install --yes build-essential
Reading package lists... Done
Building dependency tree... 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 on Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.35-0ubuntu3) but 2.35-0ubuntu3.1 is to be installed
Depends: libtirpc-dev but it is not going to be installed
Depends: libnsl-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages不知道为什么会发生这种事。我是Linux的新手,这是一个全新的安装。我只是试图安装一些软件包,我需要使用我的其他程序,并构建基本不断失败。我在网上看到,它可能与较新版本的libc6-dev有关,但我已经尝试过人们在网上使用的所有不同方法,但这些方法都不起作用。希望这里有人能帮忙。谢谢!
发布于 2022-11-18 22:19:42
看起来您需要先进行更新:
sudo apt update重试后:
sudo apt install build-essentialhttps://askubuntu.com/questions/1441445
复制相似问题