[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'

Lucas Kanashiro 1943049 at bugs.launchpad.net
Mon Oct 25 20:33:13 UTC 2021


Verification:

===== Hirsute =====

ubuntu at hirsute:~$ dpkg -l | grep docker.io
ii  docker.io                                          20.10.7-0ubuntu5~21.04.1                                             amd64        Linux container runtime
ubuntu at hirsute:~$ sudo docker run -it --rm ubuntu:impish /bin/bash -c 'apt-get update; apt-get full-upgrade -y; apt-get install -y jq'
Unable to find image 'ubuntu:impish' locally
impish: Pulling from library/ubuntu
3910f09893e5: Pull complete 
Digest: sha256:f53c26896aaebc7727f3255c24e261b1b6f630a848a2e67c8cc5848d7c33f93f
Status: Downloaded newer image for ubuntu:impish
Get:1 http://security.ubuntu.com/ubuntu impish-security InRelease [99.5 kB]
Get:2 http://archive.ubuntu.com/ubuntu impish InRelease [270 kB]
Get:3 http://security.ubuntu.com/ubuntu impish-security/universe amd64 Packages [5466 B]
Get:4 http://security.ubuntu.com/ubuntu impish-security/main amd64 Packages [7654 B]
Get:5 http://archive.ubuntu.com/ubuntu impish-updates InRelease [99.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu impish-backports InRelease [90.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages [1793 kB]
Get:8 http://archive.ubuntu.com/ubuntu impish/universe amd64 Packages [16.7 MB]
Get:9 http://archive.ubuntu.com/ubuntu impish/multiverse amd64 Packages [256 kB]
Get:10 http://archive.ubuntu.com/ubuntu impish/restricted amd64 Packages [110 kB]
Get:11 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 Packages [25.9 kB]
Get:12 http://archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages [21.6 kB]
Get:13 http://archive.ubuntu.com/ubuntu impish-updates/universe amd64 Packages [5911 B]
Fetched 19.5 MB in 4s (4374 kB/s)               
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libjq1 libonig5
The following NEW packages will be installed:
  jq libjq1 libonig5
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 359 kB of archives.
After this operation, 1083 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu impish/main amd64 libonig5 amd64 6.9.6-1.1build1 [174 kB]
Get:2 http://archive.ubuntu.com/ubuntu impish/main amd64 libjq1 amd64 1.6-2.1ubuntu2 [133 kB]
Get:3 http://archive.ubuntu.com/ubuntu impish/main amd64 jq amd64 1.6-2.1ubuntu2 [52.5 kB]
Fetched 359 kB in 1s (247 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libonig5:amd64.
(Reading database ... 4386 files and directories currently installed.)
Preparing to unpack .../libonig5_6.9.6-1.1build1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.6-1.1build1) ...
Selecting previously unselected package libjq1:amd64.
Preparing to unpack .../libjq1_1.6-2.1ubuntu2_amd64.deb ...
Unpacking libjq1:amd64 (1.6-2.1ubuntu2) ...
Selecting previously unselected package jq.
Preparing to unpack .../jq_1.6-2.1ubuntu2_amd64.deb ...
Unpacking jq (1.6-2.1ubuntu2) ...
Setting up libonig5:amd64 (6.9.6-1.1build1) ...
Setting up libjq1:amd64 (1.6-2.1ubuntu2) ...
Setting up jq (1.6-2.1ubuntu2) ...
Processing triggers for libc-bin (2.34-0ubuntu3) ...
ubuntu at hirsute:~$ echo $?
0


===== Focal =====

ubuntu at focal:~$ dpkg -l | grep docker.io
ii  docker.io                               20.10.7-0ubuntu5~20.04.1              amd64        Linux container runtime
ubuntu at focal:~$ sudo docker run -it --rm ubuntu:impish /bin/bash -c 'apt-get update; apt-get full-upgrade -y; apt-get install -y jq'
Unable to find image 'ubuntu:impish' locally
impish: Pulling from library/ubuntu
3910f09893e5: Pull complete 
Digest: sha256:f53c26896aaebc7727f3255c24e261b1b6f630a848a2e67c8cc5848d7c33f93f
Status: Downloaded newer image for ubuntu:impish
Get:1 http://archive.ubuntu.com/ubuntu impish InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu impish-security InRelease [99.5 kB]
Get:3 http://security.ubuntu.com/ubuntu impish-security/universe amd64 Packages [5466 B]
Get:4 http://security.ubuntu.com/ubuntu impish-security/main amd64 Packages [7654 B]
Get:5 http://archive.ubuntu.com/ubuntu impish-updates InRelease [99.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu impish-backports InRelease [90.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages [1793 kB]
Get:8 http://archive.ubuntu.com/ubuntu impish/restricted amd64 Packages [110 kB]
Get:9 http://archive.ubuntu.com/ubuntu impish/multiverse amd64 Packages [256 kB]
Get:10 http://archive.ubuntu.com/ubuntu impish/universe amd64 Packages [16.7 MB]
Get:11 http://archive.ubuntu.com/ubuntu impish-updates/universe amd64 Packages [5911 B]
Get:12 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 Packages [25.9 kB]
Get:13 http://archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages [21.6 kB]
Fetched 19.5 MB in 5s (4197 kB/s)                             
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libjq1 libonig5
The following NEW packages will be installed:
  jq libjq1 libonig5
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 359 kB of archives.
After this operation, 1083 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu impish/main amd64 libonig5 amd64 6.9.6-1.1build1 [174 kB]
Get:2 http://archive.ubuntu.com/ubuntu impish/main amd64 libjq1 amd64 1.6-2.1ubuntu2 [133 kB]
Get:3 http://archive.ubuntu.com/ubuntu impish/main amd64 jq amd64 1.6-2.1ubuntu2 [52.5 kB]
Fetched 359 kB in 1s (252 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libonig5:amd64.
(Reading database ... 4386 files and directories currently installed.)
Preparing to unpack .../libonig5_6.9.6-1.1build1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.6-1.1build1) ...
Selecting previously unselected package libjq1:amd64.
Preparing to unpack .../libjq1_1.6-2.1ubuntu2_amd64.deb ...
Unpacking libjq1:amd64 (1.6-2.1ubuntu2) ...
Selecting previously unselected package jq.
Preparing to unpack .../jq_1.6-2.1ubuntu2_amd64.deb ...
Unpacking jq (1.6-2.1ubuntu2) ...
Setting up libonig5:amd64 (6.9.6-1.1build1) ...
Setting up libjq1:amd64 (1.6-2.1ubuntu2) ...
Setting up jq (1.6-2.1ubuntu2) ...
Processing triggers for libc-bin (2.34-0ubuntu3) ...
ubuntu at focal:~$ echo $?
0


===== Bionic =====

ubuntu at bionic:~$ dpkg -l | grep docker.io
ii  docker.io                                          20.10.7-0ubuntu5~18.04.2                  amd64        Linux container runtime
ubuntu at bionic:~$ sudo docker run -it --rm ubuntu:impish /bin/bash -c 'apt-get update; apt-get full-upgrade -y; apt-get install -y jq'
Unable to find image 'ubuntu:impish' locally
impish: Pulling from library/ubuntu
3910f09893e5: Pull complete 
Digest: sha256:f53c26896aaebc7727f3255c24e261b1b6f630a848a2e67c8cc5848d7c33f93f
Status: Downloaded newer image for ubuntu:impish
time="2021-10-25T17:29:51.179453666-03:00" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/296c40908f399fe0c0c972742b405e43f487d420f7925717b760e19e279615ab pid=25229
Get:1 http://security.ubuntu.com/ubuntu impish-security InRelease [99.5 kB]
Get:2 http://archive.ubuntu.com/ubuntu impish InRelease [270 kB]
Get:3 http://security.ubuntu.com/ubuntu impish-security/main amd64 Packages [7654 B]
Get:4 http://security.ubuntu.com/ubuntu impish-security/universe amd64 Packages [5466 B]
Get:5 http://archive.ubuntu.com/ubuntu impish-updates InRelease [99.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu impish-backports InRelease [90.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu impish/universe amd64 Packages [16.7 MB]
Get:8 http://archive.ubuntu.com/ubuntu impish/multiverse amd64 Packages [256 kB]
Get:9 http://archive.ubuntu.com/ubuntu impish/restricted amd64 Packages [110 kB]
Get:10 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages [1793 kB]
Get:11 http://archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages [21.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 Packages [25.9 kB]
Get:13 http://archive.ubuntu.com/ubuntu impish-updates/universe amd64 Packages [5911 B]
Fetched 19.5 MB in 5s (4190 kB/s)                          
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libjq1 libonig5
The following NEW packages will be installed:
  jq libjq1 libonig5
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 359 kB of archives.
After this operation, 1083 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu impish/main amd64 libonig5 amd64 6.9.6-1.1build1 [174 kB]
Get:2 http://archive.ubuntu.com/ubuntu impish/main amd64 libjq1 amd64 1.6-2.1ubuntu2 [133 kB]
Get:3 http://archive.ubuntu.com/ubuntu impish/main amd64 jq amd64 1.6-2.1ubuntu2 [52.5 kB]
Fetched 359 kB in 2s (236 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libonig5:amd64.
(Reading database ... 4386 files and directories currently installed.)
Preparing to unpack .../libonig5_6.9.6-1.1build1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.6-1.1build1) ...
Selecting previously unselected package libjq1:amd64.
Preparing to unpack .../libjq1_1.6-2.1ubuntu2_amd64.deb ...
Unpacking libjq1:amd64 (1.6-2.1ubuntu2) ...
Selecting previously unselected package jq.
Preparing to unpack .../jq_1.6-2.1ubuntu2_amd64.deb ...
Unpacking jq (1.6-2.1ubuntu2) ...
Setting up libonig5:amd64 (6.9.6-1.1build1) ...
Setting up libjq1:amd64 (1.6-2.1ubuntu2) ...
Setting up jq (1.6-2.1ubuntu2) ...
Processing triggers for libc-bin (2.34-0ubuntu3) ...
time="2021-10-25T17:29:59.458089606-03:00" level=info msg="shim disconnected" id=296c40908f399fe0c0c972742b405e43f487d420f7925717b760e19e279615ab
                                    time="2021-10-25T17:29:59.458142186-03:00" level=warning msg="cleaning up after shim disconnected" id=296c40908f399fe0c0c972742b405e43f487d420f7925717b760e19e279615ab namespace=moby
                                                                                                            time="2021-10-25T17:29:59.458148067-03:00" level=info msg="cleaning up dead shim"
                                                                                time="2021-10-25T17:29:59.462705131-03:00" level=warning msg="cleanup warnings time=\"2021-10-25T17:29:59-03:00\" level=info msg=\"starting signal loop\" namespace=moby pid=25589\n"
ubuntu at bionic:~$ echo $?
0


** Tags removed: verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute
** Tags added: verification-done verification-done-bionic verification-done-focal verification-done-hirsute

-- 
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 containerd package in Ubuntu:
  Fix Released
Status in crun package in Ubuntu:
  Confirmed
Status in docker.io package in Ubuntu:
  Fix Released
Status in glibc package in Ubuntu:
  Confirmed
Status in golang-github-containers-common package in Ubuntu:
  Fix Released
Status in golang-github-opencontainers-specs package in Ubuntu:
  Fix Released
Status in libpod package in Ubuntu:
  Fix Released
Status in runc package in Ubuntu:
  Invalid
Status in containerd source package in Bionic:
  Fix Committed
Status in docker.io source package in Bionic:
  Fix Committed
Status in containerd source package in Focal:
  Fix Committed
Status in docker.io source package in Focal:
  Fix Committed
Status in containerd source package in Hirsute:
  Fix Committed
Status in docker.io source package in Hirsute:
  Fix Committed
Status in containerd source package in Impish:
  Fix Released
Status in crun source package in Impish:
  Confirmed
Status in docker.io source package in Impish:
  Fix Released
Status in glibc source package in Impish:
  Confirmed
Status in golang-github-containers-common source package in Impish:
  Fix Released
Status in golang-github-opencontainers-specs source package in Impish:
  Fix Released
Status in libpod source package in Impish:
  Fix Released
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