【无标题】

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

结束后再重新安装依赖即可。

如有问题,欢迎大家评论区交流,谢谢。

上一篇:Django模板开发&重写&使用bootstrap


下一篇:CentOS7的Docker无法拉取镜像