转载链接:
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