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

Thomas Weise 1943049 at bugs.launchpad.net
Sun Oct 3 23:08:21 UTC 2021


Hi.

I am not entirely sure if that is related to what is currently going on, but I just tried to replicate my original report https://bugs.launchpad.net/cloud-images/+bug/1943293, which you can also find above as https://bugs.launchpad.net/cloud-images/+bug/1943049/comments/39.
I am now getting a *different* error from before:

sudo docker run --rm -it --entrypoint=/bin/bash "ubuntu:21.10"
root at 15c0613638fc:/# apt-get update && apt-get install -y curl
Get:1 http://archive.ubuntu.com/ubuntu impish InRelease [269 kB]
Get:2 http://security.ubuntu.com/ubuntu impish-security InRelease [90.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu impish-updates InRelease [90.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu impish-backports InRelease [90.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages [1809 kB]
Get:6 http://archive.ubuntu.com/ubuntu impish/multiverse amd64 Packages [255 kB]
Get:7 http://archive.ubuntu.com/ubuntu impish/universe amd64 Packages [16.7 MB]
Get:8 http://archive.ubuntu.com/ubuntu impish/restricted amd64 Packages [119 kB]                                                                                               
Fetched 19.5 MB in 12s (1682 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

and then:

root at 4479609faaa5:/# curl
bash: curl: command not found

Here is some system information:

*Inside* the container:

root at 15c0613638fc:/# uname -a
Linux 15c0613638fc 5.11.0-37-generic #41-Ubuntu SMP Mon Sep 20 16:39:20 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
x86_64 GNU/Linux

root at 15c0613638fc:/# lsb_release -a 
bash: lsb_release: command not found

On my *host* system:

$ uname -a
Linux home 5.11.0-37-generic #41-Ubuntu SMP Mon Sep 20 16:39:20 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute


The system is fully updated, i.e. sudo apt-get update && sudo apt-get upgrade does not lead to any change.

In the past, the installation of curl would work, but then "curl https://bing.com" would fail.
Now the installation of curl fails.

-- 
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:
  Fix Released
Status in glibc package in Ubuntu:
  Confirmed
Status in golang-github-containers-common package in Ubuntu:
  Confirmed
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 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:
  Confirmed
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