I would like to install gcc-7 on Ubuntu 22.04.
I used:
sudo apt-get install gcc-7 g++-7
But got the error:
Reading package lists... DoneBuilding dependency tree... DoneReading state information... DonePackage g++-7 is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourcePackage gcc-7 is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package 'gcc-7' has no installation candidateE: Package 'g++-7' has no installation can
How can I install it on my machine?
Kind regards
didate