How can I downgrade GCC to version 6 on 20.04?
I need GCC6 to compile CUDA9 files.
Trying
apt install gcc-6
is giving me this error:
Package gcc-6 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
E: Package 'gcc-6' has no installation candidate
deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) bionic main universe
to /etc/apt/sources.list. And typedapt install g++-6
and got the error:Package 'g++-6' has no installation candidate
.$(lsb_release -sc)
so that after the word ubuntu there is a space and bionic. Saved it and tried to install but got the same error.deb http://dk.archive.ubuntu.com/ubuntu/ bionic main universe
and didsudo apt update && sudo apt install g++-6
: All OK. gcc-6, g++-6 was installed.