24

I had to run the command sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20, but unfortunately I misstyped and wrote sudo update-alternatives --install /usr/bin/gcc gccc /usr/bin/gcc-4.8 20 (so gccc instead of gcc).

Now, when trying to run the regular command, it tells me the alternative link /usr/bin/gcc is allready managed by gcccc.

I've searched around but haven't found a solution yet.

jdepypere
  • 343

2 Answers2

26

Do sudo update-alternatives --remove-all gccc.

fkraiem
  • 12,813
6
update-alternatives --remove gccc /usr/bin/gcc-4.8

is the answer you seek.

Artur Meinild
  • 31,035
user1629886
  • 61
  • 1
  • 1