opencv331 install E: Unable to locate package libjasper-dev
出现
cxl@cxl-pc:~$ sudo apt-get install libjpeg8-dev libjasper-dev libpng12-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libpng12-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package libjasper-dev
E: Package 'libpng12-dev' has no installation candidate
可以用
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
原本的那一步骤不用再执行