# Unable to locate package libmodal-json in docker with ubuntu 22.04LTS

Source: https://forum.modalai.com/topic/3488/unable-to-locate-package-libmodal-json-in-docker-with-ubuntu-22-04lts
Category: VOXL SDK and Software (https://forum.modalai.com/category/47/voxl-sdk-and-software)
Posted: 2024-05-27 16:28:12 UTC by Judoor 0
Replies: 15 · Views: 2823

## Judoor 0 · 2024-05-27 16:28:12 UTC

I'm following the bootcamp and I installed docker on my computer then I installed voxl-cross and now I'm at the part describe here : https://docs.modalai.com/voxl-cross-template/
And when doing this command inside voxl-cross, I got this results :
```
voxl-cross(2.5):~(master)(0.0.1)$ ./install_build_deps.sh qrb5165 dev
using qrb5165 dev debian repo
Err:1 http://voxl-packages.modalai.com ./dists/qrb5165/dev/binary-arm64/ InRelease
  Connection failed [IP: 35.215.116.197 80]
Reading package lists... Done
W: Failed to fetch http://voxl-packages.modalai.com/./dists/qrb5165/dev/binary-arm64/InRelease  Connection failed [IP: 35.215.116.197 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
installing: 
libmodal-json
libmodal-pipe
libvoxl-cutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libmodal-json
E: Unable to locate package libmodal-pipe
E: Unable to locate package libvoxl-cutils

Done installing dependencies

```
And I cannot continue, everythings after also fails.

It's weird because I have acces to this link *http://voxl-packages.modalai.com ./dists/qrb5165/dev/binary-arm64/* but InRelease doesn't seem to exist inside this repo.
How can I solve this problem ? 
Julien

## Reply by Alex Kushleyev (ModalAI staff) · 2024-05-27 19:32:51 UTC

@Judoor-0 , this version of voxl-cross docker image (2.5) is old, you should use version 2.6 (for building pre SDK 1.2.0 packages) or 2.7 for SDK 1.2.0 and later.

Please try the newer docker image, you can download it from developer.modalai.com , click on Protected Downloads -> Docker Images.

Alex

## Reply by Judoor 0 · 2024-05-27 21:03:55 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev thank you Alex, I didn't know there was a more up to date version.
On the documentation it says that 2.5 is the latest.
So I'll try that version :)

Julien

## Reply by Judoor 0 · 2024-05-28 16:18:43 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev I've got the same issue with voxl-cross 2.7
Docker is working well cause i've done the tutorial and everythings work well.
It's weird it's like their is something blocking me from accessing to : http://voxl-packages.modalai.com ./dists/qrb5165/dev/binary-arm64/ InRelease

## Reply by Judoor 0 · 2024-05-29 14:20:08 UTC

I still don't know why I cannot install the dependecies with this line *./install_build_deps.sh qrb5165 dev* but I directly downloaded the three dependecies that were required to run voxl-cross-templates from http://voxl-packages.modalai.com/dists/qrb5165/sdk-1.2/binary-arm64/.
So, I copied the depencies in my running voxl-docker :
```
docker cp ~/downloads/libvoxl-cutils_0.1.1_arm64.deb <container_id>:/home/root
docker cp ~/downloads/libmodal-pipe_2.10.0_arm64.deb <container_id>:/home/root
docker cp ~/downloads/libmodal-json_0.4.3_arm64.deb <container_id>:/home/root

```
Then I installed the dependencies
```
sudo dpkg -i libvoxl-cutils_0.1.1_arm64.deb
sudo dpkg -i libmodal-json_0.4.3_arm64.deb
sudo dpkg -i libmodal-pipe_2.10.0_arm64.deb

# Fix any dependency issues
sudo apt-get install -f

```
And everythings is working fine now.

Julien

## Reply by Alex Kushleyev (ModalAI staff) · 2024-05-29 14:26:11 UTC (in reply to Judoor 0)

@Judoor-0 , it seems it is a connection problem - can you do some test ping of different sites from within voxl-cross docker container? Can you ping the packages site? What about 8.8.8.8? What about manually wget the deb from the docker container?

Also, what command do you use to launch the voxl-cross docker container?

## Reply by Judoor 0 · 2024-05-29 16:18:45 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev 
I'm connecting like this :
```
julien@julien-Titan-GT77-12UHS:~$ cd git/voxl-cross-template/
julien@julien-Titan-GT77-12UHS:~/git/voxl-cross-template$ voxl-docker -i voxl-cross
launching image: voxl-cross with the following command:
docker run --rm -it --net=host --privileged -w /home/julien --volume=/dev/bus/usb:/dev/bus/usb -e LOCAL_USER_ID=0 -e LOCAL_USER_NAME=root -e LOCAL_GID=0 -v /home/julien/git/voxl-cross-template:/home/root:rw -w /home/root voxl-cross /bin/bash -l

voxl-cross(2.7):~(master)(0.0.1)$ 

```
For the ping, I can ping :
voxl-cross(2.7):~(master)(0.0.1)$ ping voxl-packages.modalai.com 
.
.
.
--- voxl-packages.modalai.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms

it works with wget :
```
voxl-cross(2.7):~(master)(0.0.1)$ wget http://voxl-packages.modalai.com/dists/qrb5165/sdk-1.2/binary-arm64/libmodal-pipe_2.10.0_arm64.deb
--2024-05-29 16:17:28--  http://voxl-packages.modalai.com/dists/qrb5165/sdk-1.2/binary-arm64/libmodal-pipe_2.10.0_arm64.deb
Resolving voxl-packages.modalai.com (voxl-packages.modalai.com)... 35.215.116.197
Connecting to voxl-packages.modalai.com (voxl-packages.modalai.com)|35.215.116.197|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 86660 (85K) [application/octet-stream]
Saving to: 'libmodal-pipe_2.10.0_arm64.deb'

libmodal-pipe_2.10. 100%[===================>]  84.63K   138KB/s    in 0.6s    

2024-05-29 16:17:29 (138 KB/s) - 'libmodal-pipe_2.10.0_arm64.deb' saved [86660/86660]

```

## Reply by Judoor 0 · 2024-05-29 16:21:33 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev And still this output for the "normal" command :
```
voxl-cross(2.7):~(master)(0.0.1)$ ./install_build_deps.sh qrb5165 sdk-1.2
using qrb5165 sdk-1.2 debian repo
Err:1 http://voxl-packages.modalai.com ./dists/qrb5165/sdk-1.2/binary-arm64/ InRelease
  Connection failed [IP: 35.215.116.197 80]
Reading package lists... Done                                
W: Failed to fetch http://voxl-packages.modalai.com/./dists/qrb5165/sdk-1.2/binary-arm64/InRelease  Connection failed [IP: 35.215.116.197 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
installing: 
libmodal-json
libmodal-pipe
libvoxl-cutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libmodal-json
E: Unable to locate package libmodal-pipe
E: Unable to locate package libvoxl-cutils

Done installing dependencies

```

## Reply by Alex Kushleyev (ModalAI staff) · 2024-05-30 03:31:05 UTC (in reply to Judoor 0)

@Judoor-0 , this is very strange. I tried using your long docker run command and also a shorter one:

```
docker run -it --rm -v `pwd`:/opt/code -w /opt/code voxl-cross:V2.7 bash
```

i can ping `voxl-packages.modalai.com` just fine. So it seems there may be some networking issue on your end that is blocking access (issue not related to docker, or the install deps script)

Alex

## Reply by Judoor 0 · 2024-05-30 13:22:33 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev I tried with a vpn located in the us and now it worked. You were right it was indeed a network issue.

I tried to install docker on the voxl2 with this command *voxl-configure-docker-support* but I had the same error as before (it was before I found a way to solve it), but docker was installed anyway but with old parameters and I want to do a clean installation. So, how can I uninstall it and reinstall it?

Julien

## Reply by Alex Kushleyev (ModalAI staff) · 2024-05-30 13:56:40 UTC (in reply to Judoor 0)

@Judoor-0 , the voxl-configure-docker-support script is intended for voxl1 only. Voxl2 runs standard Ubuntu, so you can install docker using standard docker installation instructions from docker web site. Regarding uninstallation, i am not sure, since I dont know what you did to i stall it :). But i believe the standard docker install instructions have a part where you uninstall old versions of docker.

## Reply by Judoor 0 · 2024-05-30 16:29:05 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev ok thank you, you should really update your doc and your wiki, it's very confusing.
I've installed docker the normal way and verified that everything was working, now which tutorial am i suppose to follow to install mavsdk?

Julien

## Reply by Alex Kushleyev (ModalAI staff) · 2024-05-30 16:41:09 UTC (in reply to Judoor 0)

@Judoor-0 , the instructions say that for VOXL2 you install docker using the official Docker installation instructions : https://docs.modalai.com/docker-on-voxl/#voxl-2

```
VOXL 2 has a Debian operating system and does not need any special treatment to use Docker beyond a normal apt style install.

For VOXL 2, please ignore the rest of this document and do not run any of the commands listed here.

Instead, follow the official Docker installation instructions.
```

Can you please let me know which part of documentation is not clear?

regarding `mavsdk`, perhaps this would be helpful :https://docs.modalai.com/mavsdk/#mavsdk-on-voxl2 . Also please see this post : https://forum.modalai.com/topic/3463/voxl-docker-mavsdk-python-build-issues .

## Reply by Judoor 0 · 2024-06-03 21:52:02 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev thanks for the post it's really helpfull cause I have the exact same problem, except that when I try to install mavsdk and change the Dockerfile my build is stuck endlessely on step seven. And if I don't change the ubuntu version in the dockerfile, i'm prompted with an error that says Cmake is not on the right version. So I'm kinda stuck here, what can I do ?
![Screenshot from 2024-06-03 23-36-37-1.png](https://forum.modalai.com/assets/uploads/files/1717450753087-screenshot-from-2024-06-03-23-36-37-1.png) ![Screenshot from 2024-06-03 23-38-26.png](https://forum.modalai.com/assets/uploads/files/1717450753173-screenshot-from-2024-06-03-23-38-26.png) 
Also, I don't know if it is related but after installing docker by following the official docker tutorial the directory /data/docker doesn't exist but docker is working fine.
And for whatt's confusing, there is some things like the gitlab page for mavsdk, they told you to install docker with the command for the voxl1 and it says nothing for the voxl2, so that's why I started by doing the voxl1 command to install docker.

## Reply by Judoor 0 · 2024-06-03 22:40:26 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev Also npw that i'm trying to builmd manually the mavsdk, what does this sentence mean : Note: if you built the image locally, you need to use the image name you build with, e.g. voxl-mavsdk-cpp:v1.0 ? 
How am I suppose to lainch mavsdk takeoff exemple ?

## Reply by Alex Kushleyev (ModalAI staff) · 2024-06-04 02:45:26 UTC (in reply to Judoor 0)

@Judoor-0 , I am sorry, but i cannot help you with the mavsdk issue due to lack of knowledge of the subject. Please follow up in the appropriate thread and someone else should help you out!

Alex
