Score:3

apt update error on Ubuntu 22.04

fo flag

I launched a container with ubuntu 22.04

docker run -it ubuntu:22.04

then got error with apt update

root@d089f7dbfc40:/# apt update
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
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

the docker image info

"RepoTags": [
            "ubuntu:22.04"
        ],
        "RepoDigests": [
            "ubuntu@sha256:4b1d0c4a2d2aaf63b37111f34eb9fa89fa1bf53dd6e4ca954d47caebca4005c2"
        ],

I tried ubuntu:20.04, it works fine. And ubuntu:22.04 was working about two weeks ago.

in flag
Hello, did you find a solution? I am also experiencing this. I've started a bounty on your question.
Artur Meinild avatar
vn flag
Sounds like a bug with the current Ubuntu 22.04 image, that should be filed as a bug report.
GChuf avatar
in flag
This does sound like a bug. Did you try running the rm -f command manually and with sudo privileges?
in flag
@ArturMeinild I found a solution involving updating Docker (see below). Do you still think this is worth filing as a bug report?
Artur Meinild avatar
vn flag
I think it was already reported and fixed.
Score:0
in flag

Found a solution! https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1998736

I was using Docker 20.10.9. After updating to 20.10.24 (latest available at this time), the problem vanished.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.