Problemas de dependência ao instalar o gcc 7.3 do PPA de Jonathon F

3

Estou tentando instalar o pacote gcc-7 mais recente do PPA do Jonathon F . Parece que finalmente há uma construção bem-sucedida para a amd64 a partir de 2018-02-23.

Eu encontrei os seguintes problemas de dependência ao executar sudo apt-get install gcc-7 .

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-7 : Depends: cpp-7 (= 7.3.0-5ubuntu1~16.04.york0) but it is not going to be installed
         Depends: gcc-7-base (= 7.3.0-5ubuntu1~16.04.york0) but 7.2.0-1ubuntu1~16.04 is to be installed
         Depends: libcc1-0 (>= 7.3.0-5ubuntu1~16.04.york0) but 7.2.0-1ubuntu1~16.04 is to be installed
         Depends: binutils (>= 2.28) but 2.26.1-1ubuntu1~16.04.6 is to be installed
         Depends: libgcc-7-dev (= 7.3.0-5ubuntu1~16.04.york0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Anteriormente, eu instalei gcc-7 do ppa do Ubuntu, mas isso foi para 7.2 . Eu removi esse pacote.

Rodando o Synaptic, aqui está uma lista de pacotes suspeitos:

Alguma sugestão sobre como posso resolver esses problemas de dependência e instalar o gcc 7.3?

    
por WillZ 24.02.2018 / 22:13

1 resposta

2

Parece que o gcc-7 (7.3) está quebrado em GCC 7.3 PPA de Jonathon F . Não consigo instalar o GCC 7.3 no sistema Xenial limpo (sem qualquer outro PPA):

$ sudo add-apt-repository -y ppa:jonathonf/gcc-7.3
$ sudo apt-get update
$ sudo apt-get install gcc-7
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-7 : Depends: libcc1-0 (>= 7.3.0-5ubuntu1~16.04.york0) but 5.4.0-6ubuntu1~16.04.9 is to be installed
         Depends: binutils (>= 2.28) but 2.26.1-1ubuntu1~16.04.6 is to be installed
         Depends: libgcc-7-dev (= 7.3.0-5ubuntu1~16.04.york0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ grep -r ppa /etc/apt/sources.list*
/etc/apt/sources.list.d/jonathonf-ubuntu-gcc-7_3-xenial.list:deb http://ppa.launchpad.net/jonathonf/gcc-7.3/ubuntu xenial main
/etc/apt/sources.list.d/jonathonf-ubuntu-gcc-7_3-xenial.list:# deb-src http://ppa.launchpad.net/jonathonf/gcc-7.3/ubuntu xenial main

Portanto, você deve eliminar este PPA e usar o gcc 7.2 em “PPA para a equipe de uploads do Ubuntu Toolchain (restrito) :

sudo apt-get install ppa-purge
sudo ppa-purge ppa:jonathonf/gcc-7.3
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-7
sudo apt-get install -f

Em seguida, entre em contato com Jonathon F e informe-o sobre o problema.

Atualizar. Mas eu encontrei outros PPA ppa:jonathonf/gcc de Jonathon F . Eu posso instalar o gcc 7.3 a partir dele.

#sudo ppa-purge ppa:ubuntu-toolchain-r/test # remove starting # if PPA added before
#sudo ppa-purge ppa:jonathonf/gcc-7.3 # remove starting # if PPA added before
sudo add-apt-repository -y ppa:jonathonf/gcc
sudo apt-get update
sudo apt-get install gcc-7 # will install 7.3.0-5ubuntu1~16.04.york0

e até gcc-8 (versão 8-20180218-1ubuntu1 ~ 16.04.york0 ).

    
por N0rbert 24.02.2018 / 22:42