This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Cannot install build-essential after 20.04 upgrade

Tags: None
(comma "," separated)
orcuan
Registered Member
Posts
5
Karma
0
Hi everyone,
After upgrading 20.04 i found out that gcc is uninstalled when i saw that xorg not working. I was using nvidia dkms drivers and xanmod kernel. DKMS failed to compile nvidia drivers because compiler was missing. Build-essential package was removed on upgrade process.

Full apt install output is listed bellow but following lines may be the root cause. it talks about gcc-10-base while installing gcc-10.
Code: Select all
    Reinst Failed early because of gcc-10-base:amd64
    Reinst Failed because of libitm1:amd64
    Reinst Failed because of libgcc-9-dev:amd64
    Reinst Failed because of gcc-9:amd64
    Reinst Failed because of g++-9:amd64


I really appreciate your help because i can't the problem and can't continue to work on my workstation without compiler.

Full apt install build-essential output;
Code: Select all
sudo apt install build-essential

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libgcc-9-dev:amd64 < none -> 9.3.0-10ubuntu2 @un uN Ib >
Broken libgcc-9-dev:amd64 Depends on libitm1:amd64 < none | 10-20200411-0ubuntu1 @un uH > (>= 9.3.0-10ubuntu2)
  Considering libitm1:amd64 0 as a solution to libgcc-9-dev:amd64 3
  Holding Back libgcc-9-dev:amd64 rather than change libitm1:amd64
Investigating (0) libstdc++-9-dev:amd64 < none -> 9.3.0-10ubuntu2 @un uN Ib >
Broken libstdc++-9-dev:amd64 Depends on libgcc-9-dev:amd64 < none | 9.3.0-10ubuntu2 @un uH > (= 9.3.0-10ubuntu2)
  Considering libgcc-9-dev:amd64 3 as a solution to libstdc++-9-dev:amd64 0
  Holding Back libstdc++-9-dev:amd64 rather than change libgcc-9-dev:amd64
Investigating (1) gcc-9:amd64 < none -> 9.3.0-10ubuntu2 @un uN Ib >
Broken gcc-9:amd64 Depends on libgcc-9-dev:amd64 < none | 9.3.0-10ubuntu2 @un uH > (= 9.3.0-10ubuntu2)
  Considering libgcc-9-dev:amd64 3 as a solution to gcc-9:amd64 8
  Holding Back gcc-9:amd64 rather than change libgcc-9-dev:amd64
Investigating (1) g++:amd64 < none -> 4:9.3.0-1ubuntu2 @un uN Ib >
Broken g++:amd64 Depends on gcc-9:amd64 < none | 9.3.0-10ubuntu2 @un uH > (>= 9.3.0-3~)
  Considering gcc-9:amd64 8 as a solution to g++:amd64 2
  Holding Back g++:amd64 rather than change gcc-9:amd64
Investigating (1) g++-9:amd64 < none -> 9.3.0-10ubuntu2 @un uN Ib >
Broken g++-9:amd64 Depends on gcc-9:amd64 < none | 9.3.0-10ubuntu2 @un uH > (= 9.3.0-10ubuntu2)
  Considering gcc-9:amd64 8 as a solution to g++-9:amd64 0
  Holding Back g++-9:amd64 rather than change gcc-9:amd64
Investigating (2) build-essential:amd64 < none -> 12.8ubuntu1 @un puN Ib >
Broken build-essential:amd64 Depends on g++:amd64 < none | 4:9.3.0-1ubuntu2 @un uH > (>= 4:9.2)
  Considering g++:amd64 2 as a solution to build-essential:amd64 10005
    Reinst Failed early because of gcc-10-base:amd64
    Reinst Failed because of libitm1:amd64
    Reinst Failed because of libgcc-9-dev:amd64
    Reinst Failed because of gcc-9:amd64
    Reinst Failed because of g++-9:amd64
Investigating (2) gcc:amd64 < none -> 4:9.3.0-1ubuntu2 @un uN Ib >
Broken gcc:amd64 Depends on gcc-9:amd64 < none | 9.3.0-10ubuntu2 @un uH > (>= 9.3.0-3~)
  Considering gcc-9:amd64 8 as a solution to gcc:amd64 13
  Holding Back gcc:amd64 rather than change gcc-9:amd64
Investigating (3) build-essential:amd64 < none -> 12.8ubuntu1 @un puN Ib >
Broken build-essential:amd64 Depends on gcc:amd64 < none | 4:9.3.0-1ubuntu2 @un uH > (>= 4:9.2)
  Considering gcc:amd64 13 as a solution to build-essential:amd64 10005
    Reinst Failed because of gcc-9:amd64
Broken build-essential:amd64 Depends on g++:amd64 < none | 4:9.3.0-1ubuntu2 @un uH > (>= 4:9.2)
  Considering g++:amd64 2 as a solution to build-essential:amd64 10005
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: gcc (>= 4:9.2) but it is not going to be installed
                   Depends: g++ (>= 4:9.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


I have reconfigured the repositories replaced bionic with focal on custom repositories but cannot find the root cause. My source lists;

Code: Select all
cat sources.list sources.list.d/*

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ focal universe
deb http://archive.ubuntu.com/ubuntu/ focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ focal multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu focal partner

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
deb https://apt.kitware.com/ubuntu/ focal main
deb http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu focal main
deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal main
deb http://ppa.launchpad.net/js-reynaud/kicad-5.1/ubuntu focal main
deb http://archive.neon.kde.org/user focal main
deb https://deb.nodesource.com/node_12.x focal main
deb http://ppa.launchpad.net/openmw/openmw/ubuntu focal main
deb https://repo.skype.com/deb stable main
deb https://repo.steampowered.com/steam/ stable steam
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian focal contrib
deb http://packages.microsoft.com/repos/vscode stable main
ellorenz
Registered Member
Posts
3
Karma
0
I'have the same problem, i cannot install g++:

message from apt-get install

starting pkgProblemResolver with broken count: 2
Starting 2 pkgProblemResolver with broken count: 2
Investigating (0) build-essential:amd64 < none -> 12.8ubuntu1.1 @un puN Ib >
Broken build-essential:amd64 Dipende on libc6-dev:amd64 < none | 2.31-0ubuntu9.2 @un uH >
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Reinst Failed early because of libc6:amd64
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Broken build-essential:amd64 Dipende on libc-dev:amd64 < none @un H >
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Investigating (0) libstdc++-9-dev:amd64 < none -> 9.3.0-17ubuntu1~20.04 @un uN Ib >
Broken libstdc++-9-dev:amd64 Dipende on libc6-dev:amd64 < none | 2.31-0ubuntu9.2 @un uH > (>= 2.13-0ubuntu6)
Considering libc6-dev:amd64 2 as a solution to libstdc++-9-dev:amd64 0
Holding Back libstdc++-9-dev:amd64 rather than change libc6-dev:amd64
Investigating (1) build-essential:amd64 < none -> 12.8ubuntu1.1 @un puN Ib >
Broken build-essential:amd64 Dipende on libc6-dev:amd64 < none | 2.31-0ubuntu9.2 @un uH >
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Broken build-essential:amd64 Dipende on libc-dev:amd64 < none @un H >
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Investigating (1) g++-9:amd64 < none -> 9.3.0-17ubuntu1~20.04 @un uN Ib >
Broken g++-9:amd64 Dipende on libstdc++-9-dev:amd64 < none | 9.3.0-17ubuntu1~20.04 @un uH > (= 9.3.0-17ubuntu1~20.04)
Considering libstdc++-9-dev:amd64 0 as a solution to g++-9:amd64 0
Holding Back g++-9:amd64 rather than change libstdc++-9-dev:amd64
Investigating (1) g++:amd64 < none -> 4:9.3.0-1ubuntu2 @un uN Ib >
Broken g++:amd64 Dipende on g++-9:amd64 < none | 9.3.0-17ubuntu1~20.04 @un uH > (>= 9.3.0-3~)
Considering g++-9:amd64 0 as a solution to g++:amd64 0
Holding Back g++:amd64 rather than change g++-9:amd64
Investigating (2) build-essential:amd64 < none -> 12.8ubuntu1.1 @un puN Ib >
Broken build-essential:amd64 Dipende on libc6-dev:amd64 < none | 2.31-0ubuntu9.2 @un uH >
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Broken build-essential:amd64 Dipende on libc-dev:amd64 < none @un H >
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Considering libc6-dev:amd64 2 as a solution to build-essential:amd64 10000
Broken build-essential:amd64 Dipende on g++:amd64 < none | 4:9.3.0-1ubuntu2 @un uH > (>= 4:9.2)
Considering g++:amd64 0 as a solution to build-essential:amd64 10000
Reinst Failed because of libc6-dev:amd64
Reinst Failed because of libstdc++-9-dev:amd64
Reinst Failed because of g++-9:amd64
Done
Alcuni pacchetti non possono essere installati. Questo può voler dire
che è stata richiesta una situazione impossibile oppure, se si sta
usando una distribuzione in sviluppo, che alcuni pacchetti richiesti
non sono ancora stati creati o sono stati rimossi da Incoming.
Le seguenti informazioni possono aiutare a risolvere la situazione:

I seguenti pacchetti hanno dipendenze non soddisfatte:
build-essential : Dipende: libc6-dev ma non sta per essere installato oppure
libc-dev
Dipende: g++ (>= 4:9.2) ma non sta per essere installato
E: Impossibile correggere i problemi, ci sono pacchetti danneggiati bloccati


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar