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

apt update fails in ROS2 Humble docker container

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

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: 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

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

Ranjit Kathiriya gravatar image

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

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.

I think that will solve your problem,

edit flag offensive delete link more


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

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

Question Tools

1 follower


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

Seen: 178 times

Last updated: Nov 11 '22