Como instalar o gcc5.4 após remover o gcc5.5?

0

Eu desinstalei o gcc5.5 e excluí o ppa:ubuntu-toolchain-r/test correspondente.

Em seguida, adicionei o ppa ao gcc-5.4:

sudo add-apt-repository ppa:jonathonf/gcc-5.4
sudo apt-get update

Depois tentei instalá-lo com

sudo apt install gcc-5

... e receba a seguinte mensagem de erro:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gcc-5 : Depends: cpp-5 (= 5.4.1-12ubuntu4~16.04.york0) but 5.5.0-12ubuntu1~16.04 is to be installed
         Depends: gcc-5-base (= 5.4.1-12ubuntu4~16.04.york0) but 5.5.0-12ubuntu1~16.04 is to be installed
         Depends: libgcc-5-dev (= 5.4.1-12ubuntu4~16.04.york0) but 5.5.0-12ubuntu1~16.04 is to be installed
E: Unable to correct problems, you have held broken packages.

Eu tentei muito como:

sudo apt-get install -f
sudo apt autoremove

A política do apt-cache diz:

sudo apt-cache policy gcc
gcc:
  Installed: (none)
  Candidate: (none)
  Version table:
    
por Peter 09.05.2018 / 17:57

0 respostas