I am running an Ubuntu 14.04-4 64bit. gcc --version returns
(Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
Yet, I need version 4.8.2-10.
What I tried:
- I found the specific gcc version in a debian snapshot repository.
I adapted my
/etc/apt/sources.listto contain the following two lines only:deb http://snapshot.debian.org/archive/debian/20131213T160912Z unstable main deb-src http://snapshot.debian.org/archive/debian/20131213T160912Z unstable mainAs suggested here I added the required key
- I did
sudo apt-get -o Acquire::Check-Valid-Until=false update sudo apt-get remove gccsudo apt-get install gcc. This returned:... Preparing to unpack .../gcc_4%3a4.8.2-1_amd64.deb ... Unpacking gcc (4:4.8.2-1) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up gcc (4:4.8.2-1) ...
Unfortunately, gcc --version still returned
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
Removing and re-installing gcc-4.8 and gcc-4.8-base returned in an error (unmet dependencies) or a strange warning (uninstalling more than 700mb).
How can I install this specific gcc version?