Ich versuche, das neueste gcc-7-Paket von Jonathon Fs PPA zu installieren. Sieht so aus, als ob es nun endlich einen erfolgreichen Build für amd64 ab dem 23.02.2018 gibt.
Beim Ausführen von sudo apt-get install gcc-7
bin ich auf die folgenden Abhängigkeitsprobleme gestoßen .
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.
Zuvor habe ich gcc-7
installiert von Ubuntus ppa, aber das war für 7.2
. Ich habe dieses Paket entfernt.
Wenn Sie Synaptic ausführen, finden Sie hier eine Liste verdächtiger Pakete:
Irgendwelche Vorschläge, wie ich diese Abhängigkeitsprobleme lösen und gcc 7.3 installieren kann?
Akzeptierte Antwort:
Es scheint, dass gcc-7 (7.3) in Jonathon Fs GCC 7.3 PPA defekt ist. Ich kann GCC 7.3 nicht auf einem sauberen Xenial-System (ohne andere PPA) installieren:
$ 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
Daher sollten Sie dieses PPA löschen und gcc 7.2 vom „PPA for Ubuntu Toolchain Uploads (eingeschränkt)“-Team verwenden:
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
Wenden Sie sich dann an Jonathon F und informieren Sie ihn über das Problem.
Verwandte Themen:Wie funktioniert der Papierkorb und wo finde ich offizielle Dokumentationen, Referenzen oder Spezifikationen dafür?
Aktualisieren. Aber ich habe andere PPA ppa:jonathonf/gcc
gefunden von Jonathon F. Ich kann gcc 7.3 davon installieren.
#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
und sogar gcc-8
(Version 8-20180218-1ubuntu1~16.04.york0 ).