5

This is on Ubuntu 14.04 (SERVER, so no GUI)

Ok so earlier today I was asked to upgrade GCC to GCC 4.9 (current available is GCC 4.8 for Trusty).

So following these directions I installed the PPA ubuntu-toolchain-r/test. Well, turned out we did not need GCC 4.9 and I wanted to revert back to 4.8. So I followed these instructions and I:

Used ppa-purge tool:

sudo ppa-purge ppa:ubuntu-toolchain-r/test

I removed the repository with --remove

sudo apt-add-repository --remove ppa:ubuntu-toolchain-r/test

And manually removed the PPA file from /etc/apt/sources.list.d as well as the keyring.

But now, whenever I run

sudo apt-get upgrade

It's still asking me to upgrade GCC to 4.9 (and several other toolchain related packages.)

tucstwo
  • 73

2 Answers2

6

All of what you did is just right. But you miss to do one important thing.

sudo ppa-purge ppa:ubuntu-toolchain-r/test

sudo apt-add-repository --remove ppa:ubuntu-toolchain-r/test

And manually removed the PPA file from /etc/apt/sources.list.d as well as the keyring.

Now before doing

sudo apt-get upgrade

you should make

sudo apt-get update

then make

sudo apt-get upgrade

Your problem is you are still working on the software list that containing that repository, so you have to do apt-get update to update this list without the ubuntu-toolchain-r/test repository.

Maythux
  • 87,123
-1

The first command will only disable the PPA, not actually remove and install the original packages from Ubuntu repository:

sudo apt-add-repository --remove ppa:ubuntu-toolchain-r/test

So you'll need to enable the Repository one more time, go to Software Center > Edit menu > Sources, and run ppa-purge first.

sudo ppa-purge ppa:ubuntu-toolchain-r/test

xangua
  • 7,277