Score:0

Install Build Essential Fails on Ubuntu 24.04 Fresh install due to libc6-dev dependencies

rs flag
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

Not sure why this is happening. I am new to Linux and this is a brand new install. I was just trying to install a few packages I need to use my other programs and build essential keeps failing. I saw online it may have something to do with a newer version of the libc6-dev, but I have tried all the different methods people had online and none of it is working. Hopefully someone here can help out. Thank You!

Score:1
in flag
Se6

Looks like you need to do an update first:

sudo apt update

After try again:

sudo apt install build-essential
rgreen42 avatar
rs flag
Unfortunately that did not work, however I completely rebuilt my VM and started over, and I started with sudo apt update and sudo apt upgrade and it worked, so thank you!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.