我的系统是Debian 9.8, 然后在装下面这两个包的时候老是提示找不到。然后再github上一问,过了几分钟就有大佬回复了,而且亲测有效
代码语言:javascript复制~$ 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
然后更新库
代码语言:javascript复制sudo apt-get update
sudo apt-get upgrade
最后重新运行安装命令即可
代码语言:javascript复制~$ sudo apt-get -y install clang-7 clang -7