22.10 image is broken

Bug #2008769 reported by Pierre Ancelot
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-images
New
Undecided
Unassigned

Bug Description

Classified as security vulnerability because I can't get the latest security patches.

% docker run -it ubuntu:22.04 /bin/bash
root@bc2eea7aa048:/# apt-get update
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [869 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [752 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [5557 B]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [810 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [10.9 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1103 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1137 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [808 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [49.0 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [22.4 kB]
Fetched 25.9 MB in 5s (5280 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
root@bc2eea7aa048:/#

information type: Private Security → Public
Revision history for this message
Cristovao Cordeiro (cjdc) wrote :

Hi, could you please share more information about your working environment (as I cannot reproduce the problem). More specifically:
 - Docker version
 - host OS
 - Arch (I assume it is amd64, by your logs)
 - Image serial (ie. `docker run --rm ubuntu:22.04 cat /etc/cloud/build.info`)

Revision history for this message
Pierre Ancelot (pierreact) wrote :

Sure:

Docker version 20.10.8, build 3967b7d

Host OS is a MacOS Monterrey 12.6.3

% docker run --rm ubuntu:22.04 cat /etc/cloud/build.info
serial: 20230126

Arch is amd64.

Please let me know if you need anything else.

Revision history for this message
Tomáš Virtus (virtustom) wrote :

Pierre, can you check this bug https://bugs.launchpad.net/cloud-images/+bug/2008769 and see whether it applies to you? The symptoms are almost identical.

Revision history for this message
Valentin Viennot (valentinviennot) wrote :

Hey, I was trying to reproduce on my macbook but can't get the error (also tried pulling the specific tag; I don't have the same versions tho, I'm on Ventura).

Have you tried multiple times? Is it always the same error?

Revision history for this message
Pierre Ancelot (pierreact) wrote :

@virtustorm: Your link points to here.

@valentinviennot: Multiple retries, tried to rmi,prune and pull again, same.

I suspect this may have to do with my environment, I'm not impressed with docker desktop.

I will retry with something different and update you.

Revision history for this message
Tomáš Virtus (virtustom) wrote :

@Pierre, sorry, here's the correct link https://bugs.launchpad.net/cloud-images/+bug/1943049

Revision history for this message
Stefan Lanz (lanz-stefan) wrote :

I have exactly the same problem. Here are my specs:

OS: Ubuntu 20.04.6 LTS
Docker version: 20.10.2, build 2291f61
Arch: amd64
docker run --rm ubuntu:22.04 cat /etc/cloud/build.info: serial: 20230308

Revision history for this message
Tomáš Virtus (virtustom) wrote (last edit ):

Could you please try to run with "--security-opt seccomp=unconfined" or "--privileged" flags and report if the problem persists?

E.g. either

docker run --privileged -it ubuntu:22.04 /bin/bash

or

docker run --security-opt seccomp=unconfined -it ubuntu:22.04 /bin/bash

Revision history for this message
Pierre Ancelot (pierreact) wrote :

This works.

Revision history for this message
Lichao (lcgogo) wrote :

I confirm the issue is related to docker version at my case.

# docker --version
Docker version 20.10.8, build 3967b7d

meet the issue

but

# docker --version
Docker version 20.10.23, build 7155243

is ok for me

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.