Cannot install build-essential on fresh Ubuntu 20.04.2 installation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
After a fresh install of Ubuntu 20.04.2 (followed by upgrade to the very latest packages) I installed gcc and then wanted to install build-essential, but it fails with the following error message:
$ sudo apt 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
E: Unable to correct problems, you have held broken packages.
This means that nothing can be compiled, obviously.
Also, g++ cannot be installed either:
$ sudo apt install g++
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.
g++ : Depends: g++-9 (>= 9.3.0-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Changed in build-essential (Ubuntu): | |
status: | Incomplete → New |
tags: | added: foundations-triage-discuss |
Changed in ubiquity (Ubuntu): | |
importance: | Undecided → Low |
tags: | removed: foundations-triage-discuss |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Bug reporting is mostly about finding & fixing problems thus preventing future users from hitting the same bug.
I suspect a Support site would be more appropriate, eg. https:/ /answers. launchpad. net/ubuntu. You can also find help with your problem in the support forum of your local Ubuntu community http:// loco.ubuntu. com/ or asking at https:/ /askubuntu. com or https:/ /ubuntuforums. org, or for more support options please look at https:/ /discourse. ubuntu. com/t/community -support/ 709
I've marked this as incomplete, as it looks like you need support (no indication that you've update your software lists since installation was provided, held-broken packages that requires fixing), etc. If you believe I'm in error, please leave a comment as to why, and change the status back to "New". The package will need correction, then you'll be requested to run `apport-collect`