环境
硬件:NVIDIA TX2
系统:Ubuntu18.04 & Jetpack4.3
问题
安装OpenCV4.1提示unable to locate libjasper-dev
无效解决方案
参考大部分回答都是添加下面的源,但添加后update依然报错
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
sudo apt install libjasper1 libjasper-dev
还有回答查询是否有系统架构冲突的,都无法解决
dpkg --print-foreign-architectures
有效解决办法
sudo add-apt-repository "deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe"
sudo apt update
sudo apt install libjasper1 libjasper-dev