安装依赖指令
sudo apt-get install liblapack-dev libsuitesparse-dev libcxsparse3.1.2 libgflags-dev libgoogle-glog-dev libgtest-dev
2.报错
3.解决
方法一:手动添加镜像源到sources.list
- 执行下面指令打开sources.list文件
sudo gedit /etc/apt/sources.list
- 将此网址添加到sources.list文件中,并保存退出
deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
- 终端进行对源进行更新
sudo apt-get update
- 重新执行安装依赖指令
方法二:指令添加镜像源到sources.list
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse" -u
重新执行安装依赖指令