I recently migrated from Windows to Ubuntu (actually Codeanywhere running Ubuntu) and need to upgrade to gcc 7, as it comes with gcc 4.8.2, and I need C ++ 17. I executed the following commands on the terminal:
$ 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
But I received the following error:
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 version:
$ cat /etc/lsb*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
What I need to do?
Sorry for my English.
EDIT
Missing package islibisl15 (>= 0.15)
, and not libisllS (>= 8.15)
. Sorry.
cat /etc/lsb*