The dreaded, "The following packages have unmet dependencies:" message

I have frequently received this error message The following packages have unmet dependencies: when I have tried to install various applications.

I’ve researched it and found that it’s apparently somewhat common. I have tried to follow the instructions listed below on various occasions but I have always failed to install the application in question.

Here’s my terminal for my most recent installation effort…

~$ sudo apt install build-essential
[sudo] password for: 
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
                Depends: g++ (>= 4:9.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

For more information please see… Cannot install build-essential/gcc/g++ after upgrade to 17.04

I was just able to install build-essential by following these directions…

unable to install g++ and build-essentials in ubuntu 20.04


This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.