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?