Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

Install gcc7 on ubuntu 22.04

Writer Mia Lopez

I would like to install gcc-7 on Ubuntu 22.04.

I used:

sudo apt-get install gcc-7 g++-7

But got the error:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package g++-7 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
Package gcc-7 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 'gcc-7' has no installation candidate
E: Package 'g++-7' has no installation can

How can I install it on my machine?

Kind regards

didate

4

1 Answer

Thanks @Knud Larsen for that solution.

I had the same problem, I need the old version for the distcc server. The client system, a weak industrial PC cannot be updated.

So the solution is simple, I didn't think of it, but it works. For the records, I added:

deb [arch=amd64] focal main universe

to /etc/apt/sources.list and

ran: apt update; apt install g++-7

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy