[Bug 1920753] Re: Cannot install build-essential on fresh Ubuntu 20.04.2 installation
Olivier Gayot
1920753 at bugs.launchpad.net
Tue Sep 27 14:12:23 UTC 2022
I just tried an install of 20.04.5 in a VM after selecting:
* Minimal installation
* Download updates while installing.
* Erase disk and install Ubuntu
Sadly, I did not reproduce the issue. After reboot, I was able to
install build-essential and my source.list contains the -updates pocket
as expected.
$ grep -v '^#' sources.list | awk NF
deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ focal universe
deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe
deb http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
Full source list content: https://pastebin.canonical.com/p/Bs945Z8FQV/
@uusijani, would you mind sharing the output of /var/log/installer from
your broken installation? There might be information in this file that
you could consider confidential, so please make sure to redact anything
sensitive.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to build-essential in Ubuntu.
https://bugs.launchpad.net/bugs/1920753
Title:
Cannot install build-essential on fresh Ubuntu 20.04.2 installation
Status in build-essential package in Ubuntu:
New
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
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.
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~20.04) 9.3.0
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/build-essential/+bug/1920753/+subscriptions
More information about the foundations-bugs
mailing list