[SOLVED] Mint 19 Cinnamon unable to install gcc-8

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Mint 19 Cinnamon unable to install gcc-8

Post by xenopeek »

Does it show in this list:
ls -l /usr/bin/gcc*

What about in this output:
dpkg -S gcc-8

Or:
dpkg -L gcc-8 | grep /usr/bin
Image
deepakdeshp
Level 20
Level 20
Posts: 12336
Joined: Sun Aug 09, 2015 10:00 am

Re: Mint 19 Cinnamon unable to install gcc-8

Post by deepakdeshp »

xenopeek wrote: Fri Aug 17, 2018 1:10 pm Does it show in this list:
ls -l /usr/bin/gcc*

What about in this output:
dpkg -S gcc-8

Or:
dpkg -L gcc-8 | grep /usr/bin

Code: Select all

ls -l /usr/bin/gcc* |grep gcc-8
/usr/bin/gcc-8:
uma@mint-18-uma ~ $ /usr/bin/gcc-8 --version
bash: /usr/bin/gcc-8: Is a directory
uma@mint-18-uma ~ $ cd /usr/bin/gcc-8
uma@mint-18-uma /usr/bin/gcc-8 $ ls
uma@mint-18-uma /usr/bin/gcc-8 $ dpkg -L gcc-8 | grep /usr/bin
/usr/bin
/usr/bin/x86_64-linux-gnu-gcc-8
/usr/bin/x86_64-linux-gnu-gcc-ar-8
/usr/bin/x86_64-linux-gnu-gcc-nm-8
/usr/bin/x86_64-linux-gnu-gcc-ranlib-8
/usr/bin/x86_64-linux-gnu-gcov-8
/usr/bin/x86_64-linux-gnu-gcov-dump-8
/usr/bin/x86_64-linux-gnu-gcov-tool-8
/usr/bin/gcc-8
/usr/bin/gcc-ar-8
/usr/bin/gcc-nm-8
/usr/bin/gcc-ranlib-8
/usr/bin/gcov-8
/usr/bin/gcov-dump-8
/usr/bin/gcov-tool-8
uma@mint-18-uma /usr/bin/gcc-8 $ dpkg -S gcc-8
gcc-8-base:amd64: /usr/share/doc/gcc-8-base/copyright
gcc-8-base:amd64: /usr/share/doc/gcc-8-base/TODO.Debian
gcc-8: /usr/share/lintian/overrides/gcc-8
libstdc++6:amd64: /usr/share/gcc-8/python/libstdcxx/v6/__init__.py
gcc-8: /usr/share/doc/gcc-8-base/mpx/changelog.gz
gcc-8: /usr/share/doc/gcc-8-base/NEWS.html
gcc-8: /usr/share/doc/gcc-8-base/NEWS.gz
gcc-8: /usr/share/doc/gcc-8-base/quadmath/changelog.gz
gcc-8: /usr/share/doc/gcc-8
gcc-8-base:amd64: /usr/share/doc/gcc-8-base/changelog.Debian.gz
gcc-8: /usr/share/doc/gcc-8-base/changelog.gz
gcc-8: /usr/share/doc/gcc-8-base/itm
gcc-8: /usr/share/doc/gcc-8-base/mpx
libstdc++6:amd64: /usr/share/gcc-8/python/libstdcxx
gcc-8: /usr/share/doc/gcc-8-base/gomp/changelog.gz
libstdc++6:amd64: /usr/share/gcc-8/python
gcc-8: /usr/share/doc/gcc-8-base/README.Bugs
gcc-8: /usr/bin/gcc-8
gcc-8: /usr/share/man/man1/x86_64-linux-gnu-gcc-8.1.gz
libgcc-8-dev:amd64: /usr/share/doc/libgcc-8-dev
libstdc++6:amd64: /usr/share/gcc-8
gcc-8: /usr/share/doc/gcc-8-base/gcc
gcc-8: /usr/share/doc/gcc-8-base/gcc/changelog.gz
gcc-8, gcc-8-base:amd64: /usr/share/doc/gcc-8-base
libstdc++6:amd64: /usr/share/gcc-8/python/libstdcxx/v6/printers.py
gcc-8: /usr/share/doc/gcc-8-base/README.ssp
gcc-8: /usr/bin/x86_64-linux-gnu-gcc-8
gcc-8: /usr/share/man/man1/gcc-8.1.gz
gcc-8: /usr/share/doc/gcc-8-base/itm/changelog.gz
gcc-8-base:amd64: /usr/share/doc/gcc-8-base/README.Debian.amd64.gz
gcc-8: /usr/share/doc/gcc-8-base/gomp
gcc-8: /usr/share/doc/gcc-8-base/quadmath
gcc-8: /usr/share/doc/gcc-8-base/sanitizer/changelog.gz
gcc-8: /usr/share/doc/gcc-8-base/sanitizer
libstdc++6:amd64: /usr/share/gcc-8/python/libstdcxx/v6
libstdc++6:amd64: /usr/share/gcc-8/python/libstdcxx/__init__.py
libstdc++6:amd64: /usr/share/gcc-8/python/libstdcxx/v6/xmethods.py
/usr/bin/gcc-8 is an empty directory.

Code: Select all

find /usr -name gcc-8
/usr/share/gcc-8
/usr/share/doc/gcc-8
/usr/share/lintian/overrides/gcc-8
/usr/bin/gcc-8
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Mint 19 Cinnamon unable to install gcc-8

Post by xenopeek »

Installed from the package gcc-8 in the Ubuntu 18.04 repository, /usr/bin/gcc-8 is a symoblic link to /usr/bin/x86_64-linux-gnu-gcc-8.

I can only guess it's still installed from somewhere else. What does this show:
apt policy gcc-8
Image
deepakdeshp
Level 20
Level 20
Posts: 12336
Joined: Sun Aug 09, 2015 10:00 am

Re: Mint 19 Cinnamon unable to install gcc-8

Post by deepakdeshp »

Code: Select all

apt policy gcc-8
gcc-8:
  Installed: 8.1.0-1ubuntu1
  Candidate: 8.1.0-1ubuntu1
  Version table:
 *** 8.1.0-1ubuntu1 500
        500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
     8-20180414-1ubuntu2 500
        500 http://mirror.cse.iitk.ac.in/ubuntu bionic/universe amd64 Packages
How do I call gcc-8?
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12336
Joined: Sun Aug 09, 2015 10:00 am

Re: Mint 19 Cinnamon unable to install gcc-8

Post by deepakdeshp »

xenopeek wrote: Fri Aug 17, 2018 3:13 pm Installed from the package gcc-8 in the Ubuntu 18.04 repository, /usr/bin/gcc-8 is a symoblic link to /usr/bin/x86_64-linux-gnu-gcc-8.

I can only guess it's still installed from somewhere else. What does this show:
apt policy gcc-8
/usr/bin/gcc-8 is a directory and not a file
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Mint 19 Cinnamon unable to install gcc-8

Post by xenopeek »

xenopeek wrote: Wed Aug 15, 2018 2:49 pm For a first, I'd suggest to disable the update-toolchain-r/test PPA for now. You can do that in Software Sources.
Start by doing this, which I asked you to do earlier. That PPA is causing this issue.

Then redo the following to, again, reinstall gcc packages and hopefully this time manage to get the versions from the Ubuntu repositories instead of from dodgy PPAs.
xenopeek wrote: Thu Aug 16, 2018 3:48 pm Try this to force install the gcc-7 related packages with the version from the repository:

Code: Select all

apt install cpp-7=7.3.0-16ubuntu3 gcc-7=7.3.0-16ubuntu3 gcc-7-base=7.3.0-16ubuntu3 gcc-7-base:i386=7.3.0-16ubuntu3 libasan4=7.3.0-16ubuntu3 libcilkrts5=7.3.0-16ubuntu3 libgcc-7-dev=7.3.0-16ubuntu3 libubsan0=7.3.0-16ubuntu3
If it throws some error or says doing this would break dependencies please share here.

If it works try it also for the gcc-8 related packages:

Code: Select all

apt install gcc-8-base=8-20180414-1ubuntu2 libasan5=8-20180414-1ubuntu2 libatomic1=8-20180414-1ubuntu2 libcc1-0=8-20180414-1ubuntu2 libgcc-8-dev=8-20180414-1ubuntu2 libgcc1=1:8-20180414-1ubuntu2 libgomp1=8-20180414-1ubuntu2 libitm1=8-20180414-1ubuntu2 liblsan0=8-20180414-1ubuntu2 libmpx2=8-20180414-1ubuntu2 libquadmath0=8-20180414-1ubuntu2 libstdc++6=8-20180414-1ubuntu2 libtsan0=8-20180414-1ubuntu2 libubsan1=8-20180414-1ubuntu2
If it throws some error or says doing this would break dependencies please share here.
Image
deepakdeshp
Level 20
Level 20
Posts: 12336
Joined: Sun Aug 09, 2015 10:00 am

Re: Mint 19 Cinnamon unable to install gcc-8

Post by deepakdeshp »

xenopeek wrote: Sat Aug 18, 2018 6:02 am
xenopeek wrote: Wed Aug 15, 2018 2:49 pm For a first, I'd suggest to disable the update-toolchain-r/test PPA for now. You can do that in Software Sources.
Start by doing this, which I asked you to do earlier. That PPA is causing this issue.

Then redo the following to, again, reinstall gcc packages and hopefully this time manage to get the versions from the Ubuntu repositories instead of from dodgy PPAs.
xenopeek wrote: Thu Aug 16, 2018 3:48 pm Try this to force install the gcc-7 related packages with the version from the repository:

Code: Select all

apt install cpp-7=7.3.0-16ubuntu3 gcc-7=7.3.0-16ubuntu3 gcc-7-base=7.3.0-16ubuntu3 gcc-7-base:i386=7.3.0-16ubuntu3 libasan4=7.3.0-16ubuntu3 libcilkrts5=7.3.0-16ubuntu3 libgcc-7-dev=7.3.0-16ubuntu3 libubsan0=7.3.0-16ubuntu3
If it throws some error or says doing this would break dependencies please share here.

If it works try it also for the gcc-8 related packages:

Code: Select all

apt install gcc-8-base=8-20180414-1ubuntu2 libasan5=8-20180414-1ubuntu2 libatomic1=8-20180414-1ubuntu2 libcc1-0=8-20180414-1ubuntu2 libgcc-8-dev=8-20180414-1ubuntu2 libgcc1=1:8-20180414-1ubuntu2 libgomp1=8-20180414-1ubuntu2 libitm1=8-20180414-1ubuntu2 liblsan0=8-20180414-1ubuntu2 libmpx2=8-20180414-1ubuntu2 libquadmath0=8-20180414-1ubuntu2 libstdc++6=8-20180414-1ubuntu2 libtsan0=8-20180414-1ubuntu2 libubsan1=8-20180414-1ubuntu2
If it throws some error or says doing this would break dependencies please share here.
I am sorry that I missed the part to disable the toolchains ppa. I disabled it as per your advise and ran the commands. gcc-8 is finally installed!
Thanks a lot for being patient and seeing the problem through!!
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: [SOLVED] Mint 19 Cinnamon unable to install gcc-8

Post by xenopeek »

You're welcome. Finally you can get to GCC'ing :)
Image
deepakdeshp
Level 20
Level 20
Posts: 12336
Joined: Sun Aug 09, 2015 10:00 am

Re: [SOLVED] Mint 19 Cinnamon unable to install gcc-8

Post by deepakdeshp »

xenopeek wrote: Sat Aug 18, 2018 12:35 pm You're welcome. Finally you can get to GCC'ing :)
Its all because of you who did the hand holding very patiently excusing my mistake to disable the PPA. May be if the ppa wasnt enabled, the issue would not have risen. But again I enabled it in desperation when I wasnt able to install gcc-8, thinking it would help me.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Software & Applications”