even after cleaning with apt-get clean
it says there are broken packages. sudo dpkg -l | grep ^..r
as mentioned in [1] returns nothing.
$ sudo apt-get install build-essential
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:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:9.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
[1] https://www.techbrown.com/fix-broken-packages-ubuntu-debian/
After looking for an answer, I figured to manually install the "correct" version manually, and came across this when downloading the pkg file:
Add the following line to /etc/apt/sources.list:
deb http://archive.ubuntu.com/ubuntu/ focal-proposed main
Update the package index:
sudo apt-get update
After adding this repository, I was able to install build-essential with the command:
sudo apt-get install build-essential
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With