This question already has an answer here:
When i try to compile in Geany i get the following error:
/bin/sh: 1: gcc: not found
When I run
sudo apt install gcc
This is what is printed on the screen:
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: gcc : Depends: gcc-7 (>= 7.3.0-12~) but it is not going to be installed Recommends: libc6-dev but it is not going to be installed or libc-dev E: Unable to correct problems, you have held broken packages.
I am using Ubuntu 18.04.1 LTS