Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to locate package libjasper-dev #83

Open
wisexp opened this issue Dec 19, 2020 · 12 comments
Open

Unable to locate package libjasper-dev #83

wisexp opened this issue Dec 19, 2020 · 12 comments

Comments

@wisexp
Copy link

wisexp commented Dec 19, 2020

--- Installing dependency: libjasper-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libjasper-dev

any idea?

@JosephSummerhays1
Copy link

exact same problem here.

@tpiros
Copy link

tpiros commented Sep 7, 2021

I had the same issue, the following seemed to have fix it:

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

@donvirtus
Copy link

I had the same issue, the following seemed to have fix it:

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

Still doesn't work for me. I have the same problem here.

@dmitridb
Copy link

dmitridb commented Feb 8, 2023

So this is LibJasPer:

https://ece.engr.uvic.ca/~frodo/jasper/

I'm building it without that package installed all the way up to Ubuntu 20.10 without any problems. It's a JPEG2000 reference implementation skimming over that. I don't think you need to bother unless you're working in the niche applications it's used in for maybe its lossless qualities (Medical imaging and sattelite remote sensing are actually examples in what I read it's used for which makes sense for opencv) - Or in case it starts getting widely adopted.

Feel free to add this to cmake:

cmake -D WITH_JASPER=OFF

@Digital2Slave
Copy link

I had the same issue, the following seemed to have fix it:

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

Still doesn't work for me. I have the same problem here.

$ sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
$ sudo apt update
$  sudo apt install libjasper1 libjasper-dev

It's work for me.

Ubuntu22.04 LTS

@IHVD
Copy link

IHVD commented Dec 22, 2023

It's work for me.

somehow it still doesnt for me... still unable to locate packages libjasper-dev and libjasper1

@devgksx
Copy link

devgksx commented Dec 29, 2023

doesn't work for me

@drinkwat
Copy link

doesn't work for me
It may be that the Ubuntu version doesn't match. He is providing software sources for Ubuntu 16.04.

@cpunurd
Copy link

cpunurd commented Jun 23, 2024

Trying to install Kodi from source on Debian 12, same problem...
sudo gdebi kodi-15-build-deps_1.0_all.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libjasper-dev

@YoussephAhmed
Copy link

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

This finally worked with me!

@neil0306
Copy link

I had the same issue, the following seemed to have fix it:

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

Not work for me because of the added repo's 404 NotFound Error, logs are as follows:

~/Desktop/OpenCV_related$ sudo apt update
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [106 kB]                          
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal InRelease                                          
Hit:1 https://repo.download.nvidia.cn/jetson/common r35.3 InRelease                                 
Hit:4 https://repo.download.nvidia.cn/jetson/t234 r35.3 InRelease              
Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:7 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [211 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/main arm64 DEP-11 Metadata [88.1 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 48x48 Icons [27.5 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [116 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64@2 Icons [29 B]
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Err:8 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404  Not Found [IP: 2620:2d:4002:1::102 80]
Fetched 106 kB in 4s (26.2 kB/s)
Reading package lists... Done
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages  404  Not Found [IP: 2620:2d:4002:1::102 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

@cpunurd
Copy link

cpunurd commented Jul 31, 2024

This helped but you have to find and convert the keys and libjasper1 doesn't exist on Debian 12
Thanks to both users that helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests