ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

apt update fails in ROS2 Humble docker container

asked 2022-11-11 03:54:30 -0500

jenamax gravatar image

Hello! I have the following issue when try to build a docker image based on ROS2 Humble. When I am running apt update for further installation of other packages I get the following error:

W: http://packages.ros.org/ros2/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code

The same thing happens when I just pull the original image (osrf/ros:humble-desktop) and run apt update inside it

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-11-11 07:56:42 -0500

Ranjit Kathiriya gravatar image

updated 2022-11-11 07:57:53 -0500

Hello @jenamax,

I think You need to install the latest docker. In my case, installing version 20.10.14 helped. It did not work with 20.10.8

Follow the below link's issues that were raised in GitHub.

https://github.com/osrf/docker_images...

https://stackoverflow.com/questions/7...

https://github.com/osrf/docker_images...

I think that will solve your problem,

edit flag offensive delete link more

Comments

Yes, after Docker update this problem was solved. Thank you!

jenamax gravatar image jenamax  ( 2022-11-12 02:45:18 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-11-11 03:54:30 -0500

Seen: 358 times

Last updated: Nov 11 '22