Install-OpenCV icon indicating copy to clipboard operation
Install-OpenCV copied to clipboard

Unable to locate package libjasper-dev

Open wisexp opened this issue 4 years ago • 12 comments

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

any idea?

wisexp avatar Dec 19 '20 06:12 wisexp

exact same problem here.

JosephSummerhays1 avatar Jul 12 '21 15:07 JosephSummerhays1

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

tpiros avatar Sep 07 '21 10:09 tpiros

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.

donvirtus avatar Jan 27 '23 05:01 donvirtus

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

dmitridb avatar Feb 08 '23 01:02 dmitridb

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

Digital2Slave avatar Jun 21 '23 11:06 Digital2Slave

It's work for me.

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

IHVD avatar Dec 22 '23 13:12 IHVD

doesn't work for me

JustANormalProgramm3r avatar Dec 29 '23 02:12 JustANormalProgramm3r

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

drinkwat avatar Feb 10 '24 12:02 drinkwat

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

cpunurd avatar Jun 23 '24 14:06 cpunurd

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!

YoussephAhmed avatar Jul 22 '24 22:07 YoussephAhmed

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.

neil0306 avatar Jul 30 '24 09:07 neil0306

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

cpunurd avatar Jul 31 '24 14:07 cpunurd