Before you say it's a duplicate, the wget links in this answer are dead, and I need g++-8
too, not just gcc-8
: How to resolve the error : 'Package gcc-8 has no installation candidate' ? I'm trying to install it by sudo-apt install gcc-8.
This page seems to indicate gcc-8
is a valid package in Ubuntu 22.04: https://linux-packages.com/ubuntu-jammy-jellyfish/package/gcc-8<-- what does this page mean? How do I use it?
The error I see: E: Package 'gcc-8' has no installation candidate
:
$ sudo apt install gcc-8Reading package lists... DoneBuilding dependency tree... DoneReading state information... DonePackage gcc-8 is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package 'gcc-8' has no installation candidate
TODO:
- Add an answer with detailed steps as described here by Karel, and screenshots. See our chat: https://chat.stackexchange.com/rooms/141964/discussion-between-karel-and-gabriel-staples