Impossible to install build-essentials on Mint 18.3 Cinnamon.

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Nettobr
Level 1
Level 1
Posts: 3
Joined: Wed Dec 06, 2017 12:16 am

Impossible to install build-essentials on Mint 18.3 Cinnamon.

Post by Nettobr » Wed Dec 06, 2017 7:05 pm

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 19
Level 19
Posts: 9515
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

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

Post by karlchen » Wed Dec 06, 2017 7:13 pm

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
Linux Mint 18.1 64-bit Cinnamon Desktop, Total Commander 9.21a 64-bit
Ubuntu 18.04.1 32-bit Mate Desktop, Total Commander 9.21a 32-bit
Windows? - 1 window in every room

Mute Ant
Level 13
Level 13
Posts: 4945
Joined: Tue Sep 03, 2013 7:45 pm
Location: Norfolk UK

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

Post by Mute Ant » Wed Dec 06, 2017 7:37 pm

"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."
Tommy reports the scan of zircon and opal storage is complete. When shall we go today?

Nettobr
Level 1
Level 1
Posts: 3
Joined: Wed Dec 06, 2017 12:16 am

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

Post by Nettobr » Wed Dec 06, 2017 7:47 pm

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
Level 1
Level 1
Posts: 3
Joined: Wed Dec 06, 2017 12:16 am

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

Post by Nettobr » Wed Dec 06, 2017 7:57 pm

Ok People,

Repositories in Brazil were not updated correctly.

Problem solved.

Thanks MUTE ANT for the hint.

NettoBR

Post Reply

Return to “Software & Applications”