我试图安装gcc-8g++-8在我的Ubunut20.04,但我不能,如下图所示。有什么建议吗?
sudo apt install gcc-8 g++-8
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'clang-8-doc' for regex 'g++-8'
Note, selecting 'python-clang-8' for regex 'g++-8'
Note, selecting 'clang-8' for regex 'g++-8'
Note, selecting 'clang-8-examples' for regex 'g++-8'
Note, selecting 'libclang-8-dev' for regex 'g++-8'
E: Unable to locate package gcc-8发布于 2022-11-30 09:42:46
要做到这一点,有两种方法:
sudo add-apt-repository universe
sudo apt update
sudo apt install gcc g++wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-8/gcc-8_8.4.0-3ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-8/g++-8_8.4.0-3ubuntu2_amd64.deb
sudo dpkg -i g++-8_8.4.0-3ubuntu2_amd64.deb gcc-8_8.4.0-3ubuntu2_amd64.deb
sudo apt --fix-missing installhttps://askubuntu.com/questions/1443176
复制相似问题