When upgrade to Ubuntu 18.04, some libraries are still needed for OpenCV 3.4 and others, but not provided by the new OS. We can install it like this:
sudo add-apt-repository “deb http://security.ubuntu.com/ubuntu xenial-security main”
sudo apt update
sudo apt install libjasper1 libjasper-dev
hi it doesn’t work
LikeLike
Can you show me the error message?
It will not work if you just copy and paste.
Please replace the “” in your system.
LikeLike
I replaced the double quotations (” “) with single quotations ( ‘ ‘ ) and it worked
LikeLiked by 1 person
thank you!
LikeLike
Getting this error:
W: Failed to fetch http://security.ubuntu/ubuntu/dists/xenial-security/InRelease Could not resolve ‘security.ubuntu’
W: Some index files failed to download. They have been ignored, or old ones used instead.
LikeLike
Please check the URL is correct or not. Maybe something was missing, like ‘.com’ after ‘security.ubuntu’
LikeLike
For those complain about the link doesn’t work, you shall change the symbols of ” to “, they looked different and the latter symbol works for me.
LikeLike
I have been fighting this for a week and this does not work. I have tried everything in the comments and this just does not work. This is the error I always get:
Reading package lists… Done
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.173 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
so when I try to install the libjasper, it can’t be found.
I am trying to install this on a Jetson Nano running Ubuntu 18.04. What am I doing wrong?
LikeLiked by 1 person
Are you sure that you replace the double quotations (” “) with proper ones in your system?
LikeLike
Hi,
I face exactly the same problem. Also on Jetson Nano.
I’ve already tried replacing quotations to ” ” or ‘ ‘ but still it doesn’t work…
LikeLike
The problem should be from Jetson Nano Ubuntu system. But I saw some post said that libjasper is not really required for OpenCV.
LikeLike