命令:
sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install gcc-9 g++-9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9现在我的gcc版本是9.5 (11以前)
我怎么能删除这些更新-替代和还给我的gcc 11?
发布于 2023-03-07 17:23:09
作为手动删除包和PPA的替代方法,有一种更自动化的方法可以使用ppa-purge。在你的情况下,你会跑:
sudo ppa-purge -o ubuntu-toolchain -p test
以下格式也有效
sudo ppa-purge ppa:ubuntu-toolchain-r/test
从文件中:
ppa-purge will reset all packages from a PPA to the standard
versions released for your distribution.https://askubuntu.com/questions/1458242
复制相似问题