I installed Ubuntu 18.04.1 LTS in my VirtualBox. I want to use gcc in it but it doesn't have a pre-installed version, and when I try to install it shows the following message:
sudo apt-get install gcc
package gcc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
sudo apt update
before attempting to installgcc
?