首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >由于libc6-dev依赖关系,在Ubuntu24.04新安装上安装基本安装失败

由于libc6-dev依赖关系,在Ubuntu24.04新安装上安装基本安装失败
EN

Ask Ubuntu用户
提问于 2022-11-18 22:12:10
回答 1查看 530关注 0票数 0
代码语言:javascript
复制
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有关,但我已经尝试过人们在网上使用的所有不同方法,但这些方法都不起作用。希望这里有人能帮忙。谢谢!

EN

回答 1

Ask Ubuntu用户

发布于 2022-11-18 22:19:42

看起来您需要先进行更新:

代码语言:javascript
复制
sudo apt update

重试后:

代码语言:javascript
复制
sudo apt install build-essential
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1441445

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档