gcc-8 broken packges bionic arm64 after update

Asked by alex-mobigo on 2019-06-11

I had gcc-8 , cpp-8 , g++-8 installed and was running fine on my ubuntu 18.04 LTS along with gcc-7 (7.3.0).
After a 'sudo apt-get update && sudo apt-get dist-upgrade' gcc-8 and the sibling tools had been removed.

sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libasan5 libgcc-8-dev libubsan1
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  cpp-8 g++-8 gcc-8 gdc gdc-8 libstdc++-8-dev
The following packages will be upgraded:
  binutils binutils-aarch64-linux-gnu binutils-common cpp cpp-7 g++ g++-7 gcc
  gcc-7 gcc-7-base gcc-8-base gir1.2-gstreamer-1.0 gstreamer1.0-doc
  gstreamer1.0-tools libasan4 libasan5 libatomic1 libbinutils libcc1-0
  libcups2 libdb5.3 libegl-mesa0 libegl1-mesa-dev libgbm-dev libgbm1
  libgcc-7-dev libgcc-8-dev libgcc1 libgfortran4 libgl1-mesa-dev
  libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgles2-mesa-dev libglx-mesa0
  libgomp1 libgstreamer1.0-0 libgstreamer1.0-dev libitm1 liblsan0
  libstdc++-7-dev libstdc++6 libtsan0 libubsan0 libubsan1 libwayland-egl1-mesa
  mesa-common-dev mesa-vdpau-drivers python-jinja2
49 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
Need to get 36.5 MB of archives.
After this operation, 103 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libasan5 arm64 8.3.0-6ubuntu1~18.04.1 [338 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libubsan1 arm64 8.3.0-6ubuntu1~18.04.1 [114 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libtsan0 arm64 8.3.0-6ubuntu1~18.04.1 [269 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 gcc-8-base arm64 8.3.0-6ubuntu1~18.04.1 [18.7 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libstdc++6 arm64 8.3.0-6ubuntu1~18.04.1 [372 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 liblsan0 arm64 8.3.0-6ubuntu1~18.04.1 [121 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libitm1 arm64 8.3.0-6ubuntu1~18.04.1 [24.4 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgomp1 arm64 8.3.0-6ubuntu1~18.04.1 [69.6 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libatomic1 arm64 8.3.0-6ubuntu1~18.04.1 [9148 B]
Get:10 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgcc-8-dev arm64 8.3.0-6ubuntu1~18.04.1 [858 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libcc1-0 arm64 8.3.0-6ubuntu1~18.04.1 [46.4 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgcc1 arm64 1:8.3.0-6ubuntu1~18.04.1 [34.4 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libdb5.3 arm64 5.3.28-13.1ubuntu1.1 [573 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 binutils-aarch64-linux-gnu arm64 2.30-21ubuntu1~18.04.2 [2183 kB]
Get:15 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libbinutils arm64 2.30-21ubuntu1~18.04.2 [429 kB]
Get:16 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 binutils arm64 2.30-21ubuntu1~18.04.2 [3376 B]
Get:17 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 binutils-common arm64 2.30-21ubuntu1~18.04.2 [193 kB]
Get:18 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libubsan0 arm64 7.4.0-1ubuntu1~18.04.1 [117 kB]
Get:19 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libasan4 arm64 7.4.0-1ubuntu1~18.04.1 [335 kB]
Get:20 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 g++-7 arm64 7.4.0-1ubuntu1~18.04.1 [6149 kB]
Get:21 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 gcc-7 arm64 7.4.0-1ubuntu1~18.04.1 [6004 kB]
Get:22 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libstdc++-7-dev arm64 7.4.0-1ubuntu1~18.04.1 [1466 kB]
Get:23 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgcc-7-dev arm64 7.4.0-1ubuntu1~18.04.1 [835 kB]
Get:24 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgfortran4 arm64 7.4.0-1ubuntu1~18.04.1 [249 kB]
Get:25 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 cpp-7 arm64 7.4.0-1ubuntu1~18.04.1 [5333 kB]
Get:26 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 gcc-7-base arm64 7.4.0-1ubuntu1~18.04.1 [18.9 kB]
Get:27 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 cpp arm64 4:7.4.0-1ubuntu2.3 [27.7 kB]
Get:28 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 gcc arm64 4:7.4.0-1ubuntu2.3 [5208 B]
Get:29 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 g++ arm64 4:7.4.0-1ubuntu2.3 [1552 B]
Get:30 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgstreamer1.0-dev arm64 1.14.4-1~ubuntu18.04.1 [397 kB]
Get:31 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgstreamer1.0-0 arm64 1.14.4-1~ubuntu18.04.1 [701 kB]
Get:32 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 gir1.2-gstreamer-1.0 arm64 1.14.4-1~ubuntu18.04.1 [71.6 kB]
Get:33 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 gstreamer1.0-doc all 1.14.4-1~ubuntu18.04.1 [599 kB]
Get:34 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 gstreamer1.0-tools arm64 1.14.4-1~ubuntu18.04.1 [37.3 kB]
Get:35 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libcups2 arm64 2.2.7-1ubuntu2.6 [180 kB]
Get:36 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgbm-dev arm64 19.0.2-1ubuntu1.1~18.04.1 [8708 B]
Get:37 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libegl-mesa0 arm64 19.0.2-1ubuntu1.1~18.04.1 [83.5 kB]
Get:38 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgbm1 arm64 19.0.2-1ubuntu1.1~18.04.1 [24.9 kB]
Get:39 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgl1-mesa-dri arm64 19.0.2-1ubuntu1.1~18.04.1 [5287 kB]
Get:40 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libglx-mesa0 arm64 19.0.2-1ubuntu1.1~18.04.1 [121 kB]
Get:41 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libglapi-mesa arm64 19.0.2-1ubuntu1.1~18.04.1 [28.9 kB]
Get:42 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgl1-mesa-dev arm64 19.0.2-1ubuntu1.1~18.04.1 [6044 B]
Get:43 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libegl1-mesa-dev arm64 19.0.2-1ubuntu1.1~18.04.1 [19.7 kB]
Get:44 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 mesa-common-dev arm64 19.0.2-1ubuntu1.1~18.04.1 [598 kB]
Get:45 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgl1-mesa-glx arm64 19.0.2-1ubuntu1.1~18.04.1 [5396 B]
Get:46 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libgles2-mesa-dev arm64 19.0.2-1ubuntu1.1~18.04.1 [43.4 kB]
Get:47 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 libwayland-egl1-mesa arm64 19.0.2-1ubuntu1.1~18.04.1 [6152 B]
Get:48 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 mesa-vdpau-drivers arm64 19.0.2-1ubuntu1.1~18.04.1 [1987 kB]
Get:49 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 python-jinja2 all 2.10-1ubuntu0.18.04.1 [94.8 kB]
Fetched 36.5 MB in 1min 5s (561 kB/s)
Extracting templates from packages: 100%
(Reading database ... 103683 files and directories currently installed.)
Removing gdc (4:8.3.0-1ubuntu2.2) ...
Removing gdc-8 (8.3.0-6ubuntu1~18.04) ...
Removing g++-8 (8.3.0-6ubuntu1~18.04) ...
Removing gcc-8 (8.3.0-6ubuntu1~18.04) ...
Removing cpp-8 (8.3.0-6ubuntu1~18.04) ...
Removing libstdc++-8-dev:arm64 (8.3.0-6ubuntu1~18.04) ...
(Reading database ... 102785 files and directories currently installed.)
Preparing to unpack .../libasan5_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking libasan5:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Preparing to unpack .../libubsan1_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking libubsan1:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Preparing to unpack .../libtsan0_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking libtsan0:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Preparing to unpack .../gcc-8-base_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking gcc-8-base:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Setting up gcc-8-base:arm64 (8.3.0-6ubuntu1~18.04.1) ...
(Reading database ... 102785 files and directories currently installed.)
Preparing to unpack .../libstdc++6_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking libstdc++6:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Setting up libstdc++6:arm64 (8.3.0-6ubuntu1~18.04.1) ...
(Reading database ... 102785 files and directories currently installed.)
Preparing to unpack .../0-liblsan0_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking liblsan0:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Preparing to unpack .../1-libitm1_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking libitm1:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Preparing to unpack .../2-libgomp1_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking libgomp1:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Preparing to unpack .../3-libatomic1_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking libatomic1:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Preparing to unpack .../4-libgcc-8-dev_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking libgcc-8-dev:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Preparing to unpack .../5-libcc1-0_8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking libcc1-0:arm64 (8.3.0-6ubuntu1~18.04.1) over (8.3.0-6ubuntu1~18.04) ...
Preparing to unpack .../6-libgcc1_1%3a8.3.0-6ubuntu1~18.04.1_arm64.deb ...
Unpacking libgcc1:arm64 (1:8.3.0-6ubuntu1~18.04.1) over (1:8.3.0-6ubuntu1~18.04) ...
Setting up libgcc1:arm64 (1:8.3.0-6ubuntu1~18.04.1) ...
(Reading database ... 102785 files and directories currently installed.)
Preparing to unpack .../libdb5.3_5.3.28-13.1ubuntu1.1_arm64.deb ...
Unpacking libdb5.3:arm64 (5.3.28-13.1ubuntu1.1) over (5.3.28-13.1ubuntu1) ...
Setting up libdb5.3:arm64 (5.3.28-13.1ubuntu1.1) ...
(Reading database ... 102785 files and directories currently installed.)
Preparing to unpack .../00-binutils-aarch64-linux-gnu_2.30-21ubuntu1~18.04.2_arm64.deb ...
Unpacking binutils-aarch64-linux-gnu (2.30-21ubuntu1~18.04.2) over (2.30-21ubuntu1~18.04.1) ...
Preparing to unpack .../01-libbinutils_2.30-21ubuntu1~18.04.2_arm64.deb ...
Unpacking libbinutils:arm64 (2.30-21ubuntu1~18.04.2) over (2.30-21ubuntu1~18.04.1) ...
Preparing to unpack .../02-binutils_2.30-21ubuntu1~18.04.2_arm64.deb ...
Unpacking binutils (2.30-21ubuntu1~18.04.2) over (2.30-21ubuntu1~18.04.1) ...
Preparing to unpack .../03-binutils-common_2.30-21ubuntu1~18.04.2_arm64.deb ...
Unpacking binutils-common:arm64 (2.30-21ubuntu1~18.04.2) over (2.30-21ubuntu1~18.04.1) ...
Preparing to unpack .../04-libubsan0_7.4.0-1ubuntu1~18.04.1_arm64.deb ...
Unpacking libubsan0:arm64 (7.4.0-1ubuntu1~18.04.1) over (7.4.0-1ubuntu1~18.04) ...
Preparing to unpack .../05-libasan4_7.4.0-1ubuntu1~18.04.1_arm64.deb ...
Unpacking libasan4:arm64 (7.4.0-1ubuntu1~18.04.1) over (7.4.0-1ubuntu1~18.04) ...
Preparing to unpack .../06-g++-7_7.4.0-1ubuntu1~18.04.1_arm64.deb ...
Unpacking g++-7 (7.4.0-1ubuntu1~18.04.1) over (7.4.0-1ubuntu1~18.04) ...
Preparing to unpack .../07-gcc-7_7.4.0-1ubuntu1~18.04.1_arm64.deb ...
Unpacking gcc-7 (7.4.0-1ubuntu1~18.04.1) over (7.4.0-1ubuntu1~18.04) ...
Preparing to unpack .../08-libstdc++-7-dev_7.4.0-1ubuntu1~18.04.1_arm64.deb ...
Unpacking libstdc++-7-dev:arm64 (7.4.0-1ubuntu1~18.04.1) over (7.4.0-1ubuntu1~18.04) ...
Preparing to unpack .../09-libgcc-7-dev_7.4.0-1ubuntu1~18.04.1_arm64.deb ...
Unpacking libgcc-7-dev:arm64 (7.4.0-1ubuntu1~18.04.1) over (7.4.0-1ubuntu1~18.04) ...
Preparing to unpack .../10-libgfortran4_7.4.0-1ubuntu1~18.04.1_arm64.deb ...
Unpacking libgfortran4:arm64 (7.4.0-1ubuntu1~18.04.1) over (7.4.0-1ubuntu1~18.04) ...
Preparing to unpack .../11-cpp-7_7.4.0-1ubuntu1~18.04.1_arm64.deb ...
Unpacking cpp-7 (7.4.0-1ubuntu1~18.04.1) over (7.4.0-1ubuntu1~18.04) ...
Preparing to unpack .../12-gcc-7-base_7.4.0-1ubuntu1~18.04.1_arm64.deb ...
Unpacking gcc-7-base:arm64 (7.4.0-1ubuntu1~18.04.1) over (7.4.0-1ubuntu1~18.04) ...
Preparing to unpack .../13-cpp_4%3a7.4.0-1ubuntu2.3_arm64.deb ...
Unpacking cpp (4:7.4.0-1ubuntu2.3) over (4:7.4.0-1ubuntu2.2) ...
Preparing to unpack .../14-gcc_4%3a7.4.0-1ubuntu2.3_arm64.deb ...
Unpacking gcc (4:7.4.0-1ubuntu2.3) over (4:7.4.0-1ubuntu2.2) ...
Preparing to unpack .../15-g++_4%3a7.4.0-1ubuntu2.3_arm64.deb ...
Unpacking g++ (4:7.4.0-1ubuntu2.3) over (4:7.4.0-1ubuntu2.2) ...
Preparing to unpack .../16-libgstreamer1.0-dev_1.14.4-1~ubuntu18.04.1_arm64.deb ...
Leaving 'diversion of /usr/bin/dh_gstscancodecs to /usr/bin/dh_gstscancodecs-gst0.10 by libgstreamer1.0-dev'
Leaving 'diversion of /usr/share/man/man1/dh_gstscancodecs.1.gz to /usr/share/man/man1/dh_gstscancodecs.1.gz-gst0.10 by libgstreamer1.0-dev'
Unpacking libgstreamer1.0-dev:arm64 (1.14.4-1~ubuntu18.04.1) over (1.14.1-1~ubuntu18.04.2) ...
Preparing to unpack .../17-libgstreamer1.0-0_1.14.4-1~ubuntu18.04.1_arm64.deb ...
Unpacking libgstreamer1.0-0:arm64 (1.14.4-1~ubuntu18.04.1) over (1.14.1-1~ubuntu18.04.2) ...
Preparing to unpack .../18-gir1.2-gstreamer-1.0_1.14.4-1~ubuntu18.04.1_arm64.deb ...
Unpacking gir1.2-gstreamer-1.0:arm64 (1.14.4-1~ubuntu18.04.1) over (1.14.1-1~ubuntu18.04.2) ...
Preparing to unpack .../19-gstreamer1.0-doc_1.14.4-1~ubuntu18.04.1_all.deb ...
Unpacking gstreamer1.0-doc (1.14.4-1~ubuntu18.04.1) over (1.14.1-1~ubuntu18.04.2) ...
Preparing to unpack .../20-gstreamer1.0-tools_1.14.4-1~ubuntu18.04.1_arm64.deb ...
Unpacking gstreamer1.0-tools (1.14.4-1~ubuntu18.04.1) over (1.14.1-1~ubuntu18.04.2) ...
Preparing to unpack .../21-libcups2_2.2.7-1ubuntu2.6_arm64.deb ...
Unpacking libcups2:arm64 (2.2.7-1ubuntu2.6) over (2.2.7-1ubuntu2.5) ...
Preparing to unpack .../22-libgbm-dev_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libgbm-dev:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../23-libegl-mesa0_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libegl-mesa0:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../24-libgbm1_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libgbm1:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../25-libgl1-mesa-dri_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libgl1-mesa-dri:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../26-libglx-mesa0_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libglx-mesa0:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../27-libglapi-mesa_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libglapi-mesa:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../28-libgl1-mesa-dev_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libgl1-mesa-dev:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../29-libegl1-mesa-dev_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libegl1-mesa-dev:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../30-mesa-common-dev_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking mesa-common-dev:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../31-libgl1-mesa-glx_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libgl1-mesa-glx:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../32-libgles2-mesa-dev_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libgles2-mesa-dev:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../33-libwayland-egl1-mesa_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking libwayland-egl1-mesa:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../34-mesa-vdpau-drivers_19.0.2-1ubuntu1.1~18.04.1_arm64.deb ...
Unpacking mesa-vdpau-drivers:arm64 (19.0.2-1ubuntu1.1~18.04.1) over (19.0.2-1ubuntu1~18.04.1) ...
Preparing to unpack .../35-python-jinja2_2.10-1ubuntu0.18.04.1_all.deb ...
Unpacking python-jinja2 (2.10-1ubuntu0.18.04.1) over (2.10-1) ...
Setting up libgomp1:arm64 (8.3.0-6ubuntu1~18.04.1) ...
Setting up libatomic1:arm64 (8.3.0-6ubuntu1~18.04.1) ...
Setting up libcc1-0:arm64 (8.3.0-6ubuntu1~18.04.1) ...
Processing triggers for ccache (3.4.1-1) ...
Updating symlinks in /usr/lib/ccache ...
Setting up libgstreamer1.0-0:arm64 (1.14.4-1~ubuntu18.04.1) ...
Failed to set capabilities on file `/usr/lib/aarch64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-ptp-helper' (Operation not supported)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
Setcap failed on gst-ptp-helper, falling back to setuid
Setting up mesa-common-dev:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up python-jinja2 (2.10-1ubuntu0.18.04.1) ...
Setting up libtsan0:arm64 (8.3.0-6ubuntu1~18.04.1) ...
Setting up mesa-vdpau-drivers:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up libgbm1:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up libglapi-mesa:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up gstreamer1.0-tools (1.14.4-1~ubuntu18.04.1) ...
Setting up liblsan0:arm64 (8.3.0-6ubuntu1~18.04.1) ...
Setting up gcc-7-base:arm64 (7.4.0-1ubuntu1~18.04.1) ...
Setting up binutils-common:arm64 (2.30-21ubuntu1~18.04.2) ...
Setting up libgl1-mesa-dev:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libgbm-dev:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up libwayland-egl1-mesa:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up libegl1-mesa-dev:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up libegl-mesa0:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up gstreamer1.0-doc (1.14.4-1~ubuntu18.04.1) ...
Setting up libasan5:arm64 (8.3.0-6ubuntu1~18.04.1) ...
Setting up gir1.2-gstreamer-1.0:arm64 (1.14.4-1~ubuntu18.04.1) ...
Setting up libitm1:arm64 (8.3.0-6ubuntu1~18.04.1) ...
Setting up libcups2:arm64 (2.2.7-1ubuntu2.6) ...
Setting up libubsan1:arm64 (8.3.0-6ubuntu1~18.04.1) ...
Setting up libasan4:arm64 (7.4.0-1ubuntu1~18.04.1) ...
Setting up libgfortran4:arm64 (7.4.0-1ubuntu1~18.04.1) ...
Setting up libbinutils:arm64 (2.30-21ubuntu1~18.04.2) ...
Setting up libubsan0:arm64 (7.4.0-1ubuntu1~18.04.1) ...
Setting up libgles2-mesa-dev:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up libgl1-mesa-dri:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up libgcc-7-dev:arm64 (7.4.0-1ubuntu1~18.04.1) ...
Setting up cpp-7 (7.4.0-1ubuntu1~18.04.1) ...
Setting up libstdc++-7-dev:arm64 (7.4.0-1ubuntu1~18.04.1) ...
Setting up binutils-aarch64-linux-gnu (2.30-21ubuntu1~18.04.2) ...
Setting up libgcc-8-dev:arm64 (8.3.0-6ubuntu1~18.04.1) ...
Setting up binutils (2.30-21ubuntu1~18.04.2) ...
Setting up libgstreamer1.0-dev:arm64 (1.14.4-1~ubuntu18.04.1) ...
Setting up libglx-mesa0:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up cpp (4:7.4.0-1ubuntu2.3) ...
Setting up gcc-7 (7.4.0-1ubuntu1~18.04.1) ...
Setting up g++-7 (7.4.0-1ubuntu1~18.04.1) ...
Setting up gcc (4:7.4.0-1ubuntu2.3) ...
Setting up libgl1-mesa-glx:arm64 (19.0.2-1ubuntu1.1~18.04.1) ...
Setting up g++ (4:7.4.0-1ubuntu2.3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

I thought well i can just re-install them:
sudo apt-get install cpp-8 g++-8 gcc-8 gdc gdc-8 libstdc++-8-dev

and then i have this:

sudo apt-get install cpp-8 g++-8 gcc-8 gdc gdc-8 libstdc++-8-dev
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:
 cpp-8 : Depends: gcc-8-base (= 8.3.0-6ubuntu1~18.04) but 8.3.0-6ubuntu1~18.04.1 is to be installed
 g++-8 : Depends: gcc-8-base (= 8.3.0-6ubuntu1~18.04) but 8.3.0-6ubuntu1~18.04.1 is to be installed
 gcc-8 : Depends: gcc-8-base (= 8.3.0-6ubuntu1~18.04) but 8.3.0-6ubuntu1~18.04.1 is to be installed
         Depends: libgcc-8-dev (= 8.3.0-6ubuntu1~18.04) but 8.3.0-6ubuntu1~18.04.1 is to be installed
 libstdc++-8-dev : Depends: gcc-8-base (= 8.3.0-6ubuntu1~18.04) but 8.3.0-6ubuntu1~18.04.1 is to be installed
                   Depends: libgcc-8-dev (= 8.3.0-6ubuntu1~18.04) but 8.3.0-6ubuntu1~18.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

 sudo apt-get install gcc-8
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-8 : Depends: cpp-8 (= 8.3.0-6ubuntu1~18.04) but it is not going to be installed
         Depends: gcc-8-base (= 8.3.0-6ubuntu1~18.04) but 8.3.0-6ubuntu1~18.04.1 is to be installed
         Depends: libgcc-8-dev (= 8.3.0-6ubuntu1~18.04) but 8.3.0-6ubuntu1~18.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

So seems gcc-8-base is outdated or missed in the update or 7.4.0 can't be run along with 8.3.0.

The question is/are:

a) How can i fix this and get back my gcc-8 (without breaking my distro)
b) How this could have happened?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gcc-8 Edit question
Assignee:
No assignee Edit question
Solved by:
alex-mobigo
Solved:
2019-06-11
Last query:
2019-06-11
Last reply:
2019-06-11

Looks like you enabled the proposed repository which is not for the average user. You enabled the repository at your own risk.

Manfred Hampl (m-hampl) said : #2

What output do you receive for the commands

sudo apt update
apt-cache policy cpp-8 g++-8 gcc-8 libgcc-8-dev libstdc++-8-dev gcc-8-base

alex-mobigo (alex-mobigo) said : #3

Here is the output:

sudo apt update
[sudo] password for ubuntu:
Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]
Hit:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-proposed InRelease [242 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 Packages [512 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 Packages [851 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe Translation-en [279 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 Packages [58.5 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main Translation-en [29.2 kB]
Fetched 2149 kB in 6s (368 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

apt-cache policy cpp-8 g++-8 gcc-8 libgcc-8-dev libstdc++-8-dev gcc-8-base
cpp-8:
  Installed: (none)
  Candidate: 8.3.0-6ubuntu1~18.04
  Version table:
     8.3.0-6ubuntu1~18.04 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 Packages
     8-20180414-1ubuntu2 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 Packages
g++-8:
  Installed: (none)
  Candidate: 8.3.0-6ubuntu1~18.04
  Version table:
     8.3.0-6ubuntu1~18.04 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 Packages
     8-20180414-1ubuntu2 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 Packages
gcc-8:
  Installed: (none)
  Candidate: 8.3.0-6ubuntu1~18.04
  Version table:
     8.3.0-6ubuntu1~18.04 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 Packages
     8-20180414-1ubuntu2 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 Packages
libgcc-8-dev:
  Installed: (none)
  Candidate: 8.3.0-6ubuntu1~18.04.1
  Version table:
     8.3.0-6ubuntu1~18.04.1 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 Packages
     8.3.0-6ubuntu1~18.04 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 Packages
     8-20180414-1ubuntu2 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 Packages
libstdc++-8-dev:
  Installed: (none)
  Candidate: 8.3.0-6ubuntu1~18.04
  Version table:
     8.3.0-6ubuntu1~18.04 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 Packages
     8-20180414-1ubuntu2 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 Packages
gcc-8-base:
  Installed: 8.3.0-6ubuntu1~18.04.1
  Candidate: 8.3.0-6ubuntu1~18.04.1
  Version table:
 *** 8.3.0-6ubuntu1~18.04.1 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main arm64 Packages
        100 /var/lib/dpkg/status
     8.3.0-6ubuntu1~18.04 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 Packages
     8-20180414-1ubuntu2 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic/main arm64 Packages

alex-mobigo (alex-mobigo) said : #4

"Looks like you enabled the proposed repository which is not for the average user. You enabled the repository at your own risk."

Hmm, I can't remember why i enabled the proposed repository (perhaps to get gcc-8) , i have been running (dist-upgrade) like so for about a year without issues until yesterday.

Yes, i am not an average user.

I would like to understand what packages prevent gcc-8 to be installed and fix it.

Manfred Hampl (m-hampl) said : #5

For gcc-8-base and libgcc-8-dev the package management suggests version 8.3.0-6ubuntu1~18.04.1 from bionic-proposed/main, but for all other packages it is only version 8.3.0-6ubuntu1~18.04 from bionic-updates/universe

Maybe you have enabled bionic-proposed only for main, but not for universe?

What is the output of the commands

uname -a
lsb_release -crid
cat -n /etc/apt/sources.list

alex-mobigo (alex-mobigo) said : #6

"For gcc-8-base and libgcc-8-dev the package management suggests version 8.3.0-6ubuntu1~18.04.1 from bionic-proposed/main, but for all other packages it is only version 8.3.0-6ubuntu1~18.04 from bionic-updates/universe"

That's what i can see, maybe gcc-8 is not available(updated yet) in http://ports.ubuntu.com/ubuntu-ports bionic-proposed/main ?

gcc-8:
  Installed: (none)
  Candidate: 8.3.0-6ubuntu1~18.04
  Version table:
     8.3.0-6ubuntu1~18.04 500
        500 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 Packages

This is my embedded sbc running ubuntu, the kernel is not relevant, but for the sake of information:
 uname -a
Linux nanopi-a64 4.20.17 #2 SMP PREEMPT Sat Jun 8 16:32:25 -03 2019 aarch64 aarch64 aarch64 GNU/Linux

lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

cat -n /etc/apt/sources.list
     1 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     2 # newer versions of the distribution.
     3 deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted
     4 # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted
     5
     6 ## Major bug fix updates produced after the final release of the
     7 ## distribution.
     8 deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted
     9 # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted
    10
    11 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    12 ## team. Also, please note that software in universe WILL NOT receive any
    13 ## review or updates from the Ubuntu security team.
    14 deb http://ports.ubuntu.com/ubuntu-ports/ bionic universe
    15 # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic universe
    16 deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe
    17 # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe
    18
    19 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    20 ## team, and may not be under a free licence. Please satisfy yourself as to
    21 ## your rights to use the software. Also, please note that software in
    22 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    23 ## security team.
    24 deb http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse
    25 # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse
    26 deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse
    27 # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse
    28
    29 ## N.B. software from this repository may not have been tested as
    30 ## extensively as that contained in the main release, although it includes
    31 ## newer versions of some applications which may provide useful features.
    32 ## Also, please note that software in backports WILL NOT receive any review
    33 ## or updates from the Ubuntu security team.
    34 deb http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
    35 # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
    36
    37 ## Uncomment the following two lines to add software from Canonical's
    38 ## 'partner' repository.
    39 ## This software is not part of Ubuntu, but is offered by Canonical and the
    40 ## respective vendors as a service to Ubuntu users.
    41 # deb http://archive.canonical.com/ubuntu bionic partner
    42 # deb-src http://archive.canonical.com/ubuntu bionic partner
    43
    44 deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted
    45 # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted
    46 deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe
    47 # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe
    48 deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse
    49 # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse

alex-mobigo (alex-mobigo) said : #7

TBH, i can't remember to have enabled bionic-proposed at any time. in the /etc/apt/sources.list. I usually just uncomment the line. Is it possible to enable bionic-proposed, do an update/dist-upgrade and then disable it, and run for a year?

Manfred Hampl (m-hampl) said : #8

It seems that the setting for bionic-proposed is in a different configuration file.

What is the output of

find /etc/apt/sources.list.d -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

alex-mobigo (alex-mobigo) said : #9

find /etc/apt/sources.list.d -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list.d/proposed.list

     1 deb http://ports.ubuntu.com/ubuntu-ports/ bionic-proposed main restricted

Manfred Hampl (m-hampl) said : #10

That's it. You have enabled bionic-propsed only for main and restricted, but not for universe and multiverse.
You have to be aware that some of the gcc-related packages are in main, and some are in universe.

Suggestions for a solution:

Disable bionic-proposed for all components and downgrade gcc-8-base and libgcc-8-dev to the version in bionic-updates (8.3.0-6ubuntu1~18.04); eventually the same for other packages that currently were loaded form -proposed

or

Enable bionic-proposed also for universe (and multiverse), run apt update and try installing gcc-8 again, and this should take the version from -proposed.

alex-mobigo (alex-mobigo) said : #11

Maybe this explains what happens: https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1803338

So, what about enabling bionic-proposed for universe, install the missing gcc-8 files and disable bionic proposed? Would this woks?

Manfred Hampl (m-hampl) said : #12

That bug seems to be an explanation for your problem.

And yes, enabling bionic-proposed/universe, installing gcc-8 and then disabling all bionic-proposed repositories, should work.
The only remark: you must be aware of the situation; and in case that a similar problem re-occurs (maybe with other packages), you know what the cause could be, and what you can do.

alex-mobigo (alex-mobigo) said : #13

I just did install gcc-8 , seems working,

gcc-8 --version
gcc-8 (Ubuntu 8.3.0-6ubuntu1~18.04.1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Manfred, Thanks for the help.