I just installed Lubuntu 18.04 LTS. There are two options for installing gcc:
gcc-8. Both are available from
apt-get install out of the box.
Even after I installed
gcc-8, the system is still going to install
gcc-7 when I install other packages such as
gcc-8 is newer, is there a way to make it install