osrf / docker_images

A repository to hold definitions of docker images maintained by OSRF
Apache License 2.0
579 stars 172 forks source link

Ubuntu Jammy & Humble images: apt update errors #623

Closed icolwell-as closed 2 years ago

icolwell-as commented 2 years ago

When using ubuntu:jammy, ros:humble-ros-core, ros:humble-ros-base, and other jammy-based images, there is possibility for the following error to occur when running apt update:

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

My host system is Ubuntu 20.04 Docker version 20.10.7, build f0df350

icolwell-as commented 2 years ago

Seems like there is a solution about this here: https://stackoverflow.com/questions/71941032/why-i-cannot-run-apt-update-inside-a-fresh-ubuntu22-04