目录
1 问题
2 解决
3 编译源码时其他安装命令
1 问题
执行 sudo apt-get install libglib2.0-dev 或者其他安装命令时出现如下类似错误
http://security.debian.org/debian-security stretch/updates/main amd64 poppler-utils amd64 0.48.0-2+deb9u4
404 Not Found [IP: 151.101.194.132 80]
2 解决
找你相应的系统 我的是Ubuntu 18.04
阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区
(1) 按照如上面说的 图形界面配置
(2)替换源
用你熟悉的编辑器打开:
/etc/apt/sources.list
最好先备份一份sources.list
(3)
找到对应的版本
deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
# deb https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
将上面的内容替换掉原来的内容
就可以了
3 编译源码时其他安装命令
(1)Ubuntu CMakeLists.txt:130: error: Please install lib python3!
sudo apt-get install libpython3-dev
(2)Ubuntu Please install lib fftw
sudo apt-get install libfftw3-dev
(3)Ubuntu Please install libusb
sudo apt-get install libusb-1.0-0-dev
(4)Ubuntu Please install boost
sudo apt-get install libboost-all-dev