Install libjasper in Ubuntu 18.04

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 xenial-security main”
sudo apt update
sudo apt install libjasper1 libjasper-dev


11 thoughts on “Install libjasper in Ubuntu 18.04

  1. 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 404 Not Found [IP: 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?

    Liked by 1 person

      • 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…


  2. The problem should be from Jetson Nano Ubuntu system. But I saw some post said that libjasper is not really required for OpenCV.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s