trying to update gcc, but getting an error with libisl19

Asked by David Storey on 2018-10-16

After updating to 18.04, I was getting messages on my upgrades that cpp, gcc, and g++ had upgrades being held back. On investigating, it was because cpp-7 was an unmet dependency, but was not going to be installed because of an unmet dependency on libisl19, which was not installable:
The following packages have unmet dependencies:
 gcc-7 : Depends: cpp-7 (= 7.3.0-27ubuntu1~18.04) but it is not going to be installed
         Depends: libisl19 (>= 0.15) but it is not installable
E: Unable to correct problems, you have held broken packages.

When I attempt to manually install libisl19, I get the following:
Package libisl19 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libisl19' has no installation candidate

Not sure how to proceed from here; I have tried purging and reinstalling cpp, gcc, and g++, but now I am unable to reinstall due to the unmet dependencies.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu isl Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2018-10-17
Last query:
2018-10-17
Last reply:
2018-10-17

What is the output of:

apt-cache policy gcc-7 cpp-7 libisl19; lsb_release -a; uname -a

Thanks

David Storey (dstorey65) said : #2

gcc-7:
  Installed: (none)
  Candidate: 7.3.0-27ubuntu1~18.04
  Version table:
     7.3.0-27ubuntu1~18.04 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
cpp-7:
  Installed: (none)
  Candidate: 7.3.0-27ubuntu1~18.04
  Version table:
     7.3.0-27ubuntu1~18.04 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
libisl19:
  Installed: (none)
  Candidate: (none)
  Version table:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
Linux siftworkstation 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Manfred Hampl (m-hampl) said : #3

It seems that for whatever reason you are missing the "bionic" repositories in your package management configuration (it seems that you have just bionic-updates)

What is the output of the commands

uname -a
lsb_release -crid
sudo apt-get update
cat /etc/apt/sources.list

David Storey (dstorey65) said : #4

Yeah, that's probably on me, I am relatively new to linux and have messed up and reinstalled a couple of times already. The output is below, line breaks separating the output of the different commands.

Linux siftworkstation 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Hit:5 http://repo.saltstack.com/apt/ubuntu/16.04/amd64/archive/2017.7.5 xenial InRelease
Hit:6 http://ppa.launchpad.net/noobslab/icons/ubuntu bionic InRelease
Hit:7 http://archive.canonical.com/ubuntu bionic InRelease
Get:8 https://deb.opera.com/opera-stable stable InRelease [2,592 B]
Get:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:10 http://ppa.launchpad.net/noobslab/themes/ubuntu bionic InRelease
Get:11 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:12 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic InRelease
Hit:13 https://deb.torproject.org/torproject.org stretch InRelease
Hit:15 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu bionic InRelease
Get:16 https://deb.opera.com/opera-stable stable/non-free amd64 Packages [1,838 B]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main Sources [198 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [90.4 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [364 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [404 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [151 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [560 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [565 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [148 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-security/universe Sources [20.9 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [89.0 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-security/universe i386 Packages [89.0 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [48.5 kB]

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb http://archive.ubuntu.com/ubuntu bionic multiverse universe
deb-src http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-security multiverse universe
deb-src http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner
deb https://deb.torproject.org/torproject.org stretch main # disabled on upgrade to bionic
deb-src https://deb.torproject.org/torproject.org stretch main # disabled on upgrade to bionic

https://packages.ubuntu.com/search?keywords=libisl19&searchon=names&suite=bionic&section=all

Seems its there

cd $HOME
wget http://archive.ubuntu.com/ubuntu/pool/main/i/isl/libisl19_0.19-1_amd64.deb
sudo dpkg -i ./libisl19_0.19-1_amd64.deb
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
rm ./libisl19_0.19-1_amd64.deb

Manfred Hampl (m-hampl) said : #6

Issue the command

sudo gedit /etc/apt/sources.list

This will ask for your password (as confirmation for an administrative action) and then open the editor with the sources.list configuration file loaded.

Change the second line from

deb http://archive.ubuntu.com/ubuntu bionic multiverse universe

into

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse

save the file and close the editor.

Finally run the commands

sudo apt-get update
sudo apt-get dist-upgrade

and report the results.

David Storey (dstorey65) said : #7

Thanks actionparsnip, that solved my question.

Manfred Hampl (m-hampl) said : #8

If you have only executed actoionparsnip's recommendation, then you have just tackled the symptom and might run into similar problems again. For correcting the root cause you have to enable the "bionic main" repository.

Manfred Hampl (m-hampl) said : #9

Just saw, that an additional change :

line 8 from

deb http://archive.ubuntu.com/ubuntu bionic-security multiverse universe

to

deb http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse

Manfred Hampl (m-hampl) said : #10

… is recommended.
(pressed the send button too early)