E: Unable to locate package clang-7 E: Unable to locate package clang++-7 E: Couldn't find any

我的系统是Debian 9.8, 然后在装下面这两个包的时候老是提示找不到。然后再github上一问,过了几分钟就有大佬回复了,而且亲测有效

~$ sudo apt-get -y install clang-7 clang++-7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package clang-7
E: Unable to locate package clang++-7
E: Couldn't find any package by regex 'clang++-7'

要解决这个问题,首先你得修改/etc/apt/source.list文件(也有可能是source.conf文件),在最后加上下面这行命令

deb http://deb.debian.org/debian/ testing main

然后更新库

sudo apt-get update
sudo apt-get upgrade

最后重新运行安装命令即可

~$ sudo apt-get -y install clang-7 clang++-7
上一篇:kkjcre1p: unable to spawn jobq slave process


下一篇:Unable to open 'free_base.cpp': Unable to read file 'c:\Program Files\Microsoft VS