caffe安装教程Ubuntu 16.04(CPU)(libopencv-dev错误)

前端之家收集整理的这篇文章主要介绍了caffe安装教程Ubuntu 16.04(CPU)(libopencv-dev错误)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

转载链接
http://blog.csdn.net/u010193446/article/details/53259294
按照上述教程出现错误:libopencv-dev安装失败,解决方法
开始添加
终端输入

cd /etc/apt/ 
sudo cp sources@H_301_11@.list sources@H_301_11@.list@H_301_11@.bak

然后

sudo gedit /etc/apt/sources.list

将下面源添加到最后一行
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

再安装这些依赖应该就没问题了

原文链接:https://www.f2er.com/ubuntu/350404.html

猜你在找的Ubuntu相关文章