Hi,
I’m using Docker version 20.10.8, build 3967b7d
I’m running this command : docker run -it --rm ubuntu@sha256:817cfe4672284dcbfee885b1a66094fd907630d610cab329114d036716be49ba
When in the container, I try to apt update
and I’m getting the following error:
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [880 kB] Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [3175 B] Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [7290 B] Fetched 24.5 MB in 4s (6138 kB/s) Reading package lists... Done 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
When I’m running simply docker run -it --rm ubuntu:latest
, I’m NOT getting this error when updating apt:
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1772 kB] Get:17 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [27.5 kB] Get:18 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB] Fetched 24.2 MB in 4s (6191 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 44 packages can be upgraded. Run 'apt list --upgradable' to see them.
And this albeit the current sha for ubuntu:latest (arm64) is the one above.
Mind that in the ubuntu:latest call, apt looks for “focal*” whereas when using the sea, it looks for “jammy*”…
Any clue why I’m not getting a different behaviour ?