Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to locate package libjasper-dev

I want to install opencv in ubuntu 17.04 and I know that the jasper library is removed from ubuntu 17.04

what should I do to complete install opencv correctly ???

I tried used this two below command that showed here but it does not work

sudo apt-get install opencv-data

sudo apt-get install libopencv-dev

like image 387
programmer Avatar asked Jun 09 '17 23:06

programmer


2 Answers

Use these commands:

sudo add-apt-repository deb http://security.ubuntu.com/ubuntu xenial-security main'
sudo apt update
sudo apt install libjasper1 libjasper-dev

This worked on my Ubuntu 18.04 after I replaced the double-quotes with single quotes. With the double quotes I was getting this error:

Error: need a single repository as argument
like image 99
Sirosh Bashir Avatar answered Oct 17 '22 00:10

Sirosh Bashir


Try this answer

You will be able to install the libjasper-dev from a previous release

like image 6
chittychitty Avatar answered Oct 16 '22 22:10

chittychitty