installation of build-essential fails in Ubuntu

8.9k Views Asked by At

I'm trying to update my gcc, so Linux Forums recommended that I would run sudo apt-get install build-essential. Here's the output when I try to run sudo apt-get install build-essential:

The following packages have unmet dependencies:

bunch of packages listed here

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I wasn't sure if listing the actual missing packages would affect your advice. Please tell me how to proceed.

Note: I tried this command below but there were too missing dependencies.

sudo apt-get -f install build-essential

Thanks

1

There are 1 best solutions below

4
On

This is better suited for SuperUser.
Run: sudo apt-get update && sudo apt-get -f install