我想在Ubuntu 22.04上安装gcc-7。
我用:
sudo apt-get install gcc-7 g++-7但是得到了一个错误:
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我怎么把它安装在我的机器上?
亲切的问候
二酸盐
发布于 2022-05-25 10:04:09
谢谢@Knud Larsen的解决方案。
我也遇到了同样的问题,我需要使用旧版本的distcc服务器。客户端系统,一个薄弱的工业PC不能更新。
所以解决办法很简单,我没有想过,但它有效。为了记录在案,我补充说:
deb [arch=amd64] http://archive.ubuntu.com/ubuntu focal main universe到/etc/apt/sources.list .列表和
ran:apt update; apt install g++-7
https://askubuntu.com/questions/1406962
复制相似问题