我最近从 Windows 迁移到了 Ubuntu(实际上是运行 Ubuntu 的 Codeanywhere),需要升级到 gcc 7,因为它附带了 gcc 4.8.2,而我需要 C++ 17。我在终端上执行了以下命令:
$ sudo apt-get install software-properties-common python-software-properties
$ sudo add-apt-repository ppa:jonathonf/gcc-7.1
$ sudo apt-get update
$ sudo apt-get install gcc-7 g++-7
但我收到以下错误:
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:
g++-7 : Depends: libisl15 (>= 0.15) but it is not installable
Depends: libmpfr4 (>= 3.1.3) but 3.1.2-1 is to be installed
gcc-7 : Depends: cpp-7 (= 7.1 .8-10ubuntu1~14.04.york8) but it is not going to be installed
Depends: binutils (>= 2.26.1) but 2.24-5ubuntu14.2 is to be installed
Depends: libisl15 (>= 0.15) but it is not installable
Depends: libmpfr4 (>= 3.1.3) but 3.1.2-1 is to be installed
E: Unable to correct problems, you haye held broken packages.
Ubuntu 版本:
$ cat /etc/lsb*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
我需要做什么?
抱歉我的英语不好。
编辑
丢失的包裹是libisl15 (>= 0.15)
,而不是libisllS (>= 8.15)
。抱歉。