[Bug 1943049] Re: Docker ubuntu:impish: Problem executing scripts DPkg::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
Reinhard Tartler
1943049 at bugs.launchpad.net
Wed Sep 22 13:46:31 UTC 2021
Thanks for the detailed steps. I am now able to reproduce and think I
understand the issue.
It seems that you missed out the seccomp.json changes from
https://github.com/containers/common/pull/573. Also, it seems that the
code changes in that commit aren't strictly necessary to fix the
reproducer. As a hotpatch, I was able to "fix" the issue with:
sudo curl -L https://raw.githubusercontent.com/containers/common/v0.41.0/pkg/seccomp/seccomp.json -o /usr/share/containers/seccomp.json
and then this command starts working:
podman run -it --rm ubuntu:impish /bin/bash -c 'apt-get -qq update;
apt-get install -y libc6; apt-get install -y jq'
I'll see to provide a backport of that pull request for impish.
** Also affects: golang-github-containers-common (Ubuntu)
Importance: Undecided
Status: New
** Changed in: golang-github-containers-common (Ubuntu Impish)
Importance: Undecided => High
** Changed in: golang-github-containers-common (Ubuntu Impish)
Status: New => Confirmed
** Changed in: golang-github-containers-common (Ubuntu Impish)
Assignee: (unassigned) => Reinhard Tartler (siretart)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1943049
Title:
Docker ubuntu:impish: Problem executing scripts DPkg::Post-Invoke 'rm
-f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb
/var/cache/apt/*.bin || true'
Status in cloud-images:
Confirmed
Status in crun package in Ubuntu:
Confirmed
Status in docker.io package in Ubuntu:
Confirmed
Status in glibc package in Ubuntu:
Confirmed
Status in golang-github-containers-common package in Ubuntu:
Confirmed
Status in libpod package in Ubuntu:
Confirmed
Status in runc package in Ubuntu:
Invalid
Status in crun source package in Impish:
Confirmed
Status in docker.io source package in Impish:
Confirmed
Status in glibc source package in Impish:
Confirmed
Status in golang-github-containers-common source package in Impish:
Confirmed
Status in libpod source package in Impish:
Confirmed
Status in runc source package in Impish:
Invalid
Bug description:
Sometime betweek August 28 and September 4 2021 the ubuntu:impish
images published on dockerhub began erroring when executing the
commands defined in /etc/apt/apt.conf.d/docker-clean.
I have this reproducer, which is probably not as minimal as it can be
but looks reliable:
1. docker run -it --rm ubuntu:impish bash
2. apt update
3. apt install git
4. apt -y remove git
This results in:
E: Problem executing scripts DPkg::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
*Removing* a package is not strictly needed to trigger the failure,
but it seems that *two* apt operations are needed to trigger it, so
this reproducer found by athos-ribeiro also works:
docker run -it --rm ubuntu:impish /bin/bash -c 'apt-get update; apt-
get full-upgrade -y; apt-get install -y jq'
This doesn't happen when using ubuntu:hirsute.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1943049/+subscriptions
More information about the foundations-bugs
mailing list