【无标题】
作者:互联网
linux 安装caffe时无法安装依赖的问题:如unable to 。。。 libboost-all-dev 等。
添加源
cd /etc/apt/ # step 1
sudo cp sources.list sources.list.bak #step2
vim /etc/apt/sources.list # step3
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
将上述复制并粘贴到文件最下方,保存并退出文件编辑
sudo apt-get update
sudo apt-get upgrade
结束后再重新安装依赖即可。
如有问题,欢迎大家评论区交流,谢谢。
标签:http,cn,mirrors,restricted,无标题,main,multiverse 来源: https://blog.csdn.net/qq_37380036/article/details/123090122