[Solved] Impossible to install build-essentials on Mint 18.3 Cinnamon.

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Nettobr

[Solved] Impossible to install build-essentials on Mint 18.3 Cinnamon.

Post by Nettobr »

Hi everybody,

I'm having some issues with my wifi interface and trying to solve it I have to make new driver.

My actual problem is to install build-essentials. For now, let's forget wifi issues.

What happens:

Code: Select all

sudo apt-get install build-essential linux-headers-generic
[sudo] password for vieira: 
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: g++ (>= 4:5.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I was thinking i made a mistake installing or uninstalling some software....

Then I decided to make a fresh install of 18.3 Cinnamon from scratch.

Just after the fresh install executing apt update and install build-essentials I get the same error above "you have held broken packages".

I'm quite sure there is a problem in 18.3 Cinnamon distro, or there is a new way to make modules that I dont know.

I tried "synaptic" to fix broken packages, but no success.

sudo apt-get clean && sudo apt-get update, but no success.

sudo dpkg --configure -a, but no success.

sudo apt-get install -f, but no success.


I have asked for help in Brazilian Mint Forum, and I have searched this forum too.

I'd appreciate some help.

NettoBr



Portuguese version of error:

Code: Select all

sudo apt-get install build-essential linux-headers-generic
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Alguns pacotes não puderam ser instalados. Isto pode significar que
você solicitou uma situação impossível ou, se você está usando a
distribuição instável, que alguns pacotes requeridos não foram
criados ainda ou foram retirados da "Incoming".
A informação a seguir pode ajudar a resolver a situação:

Os pacotes a seguir têm dependências desencontradas:
build-essential : Depende: g++ (>= 4:5.2) mas não será instalado
E: Impossível corrigir problemas, você manteve (hold) pacotes quebrados.
User avatar
karlchen
Level 23
Level 23
Posts: 18227
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Impossible to install build-essentials on Mint 18.3 Cinnamon.

Post by karlchen »

Hello, NettoBr.

What does the same commandline display on your system. Here it is like this:

Code: Select all

$ apt-cache policy g++
g++:
  Installed: 4:5.3.1-1ubuntu1
  Candidate: 4:5.3.1-1ubuntu1
  Version table:
 *** 4:5.3.1-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
build-essentials are present, and this is Linux Mint 18.1 x64.

Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
Mute Ant

Re: Impossible to install build-essentials on Mint 18.3 Cinnamon.

Post by Mute Ant »

"The following packages have unmet dependencies:
build-essential : Depends: g++ (>= 4:5.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages."

Classic message, it should be in Elvish across the entrance to the Dungeon, but in English it amounts to...

"You have a repository attached which is incompatible with your installed OS. I can install build-essential from that repository, but not the dependencies. If I installed that particular build-essential, it would be broken, so I didn't install it."
Nettobr

Re: Impossible to install build-essentials on Mint 18.3 Cinnamon.

Post by Nettobr »

Hi karlchen,

Thanks for quick answer.

Code: Select all

apt-cache policy g++
g++:
  Installed: (no one)
  Candidate: 4:5.3.1-1ubuntu1
  Version Table:
     4:5.3.1-1ubuntu1 500
        500 http://mirror.unesp.br/ubuntu xenial/main amd64 Packages
Well, not installed, trying to Install:

Code: Select all

vieira@cinnamon-cce ~ $ sudo apt install g++
[sudo] password for vieira: 
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:

 g++ : Depende: g++-5 (>= 5.3.1-3~) will not be installed
The following packages have unmet dependencies:Lendo listas de pacotes... Ready
Thanks for now.

NettoBr
Nettobr

Re: Impossible to install build-essentials on Mint 18.3 Cinnamon.

Post by Nettobr »

Ok People,

Repositories in Brazil were not updated correctly.

Problem solved.

Thanks MUTE ANT for the hint.

NettoBR
Locked

Return to “Software & Applications”