apt-get not working at all in hirsute docker image

Bug #1934590 reported by Francesco Chemolli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
Invalid
Undecided
Unassigned

Bug Description

I'm trying to set up a docker image for the Squid CI farm, and I can't install anything much there:

To repro:

$ docker run -ti --rm arm32v7/ubuntu:hirsute apt-get update
Reading package lists... Done
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method /usr/lib/apt/methods/http did not start correctly
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/hirsute/InRelease
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/hirsute-updates/InRelease
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/hirsute-backports/InRelease
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/hirsute-security/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.

I've tried running /usr/lib/apt/methods/http manually, it works just fine from the command line. Unfortunately apt-get doesn't give any detail at all about what could be wrong

Tags: docker
Revision history for this message
Thomas Bechtold (toabctl) wrote (last edit ):

thanks for reporting this bug. Unfortunately, Ubuntu is not responsible for images from the "arm32v7" namespace. The official Ubuntu images can be found here: https://hub.docker.com/_/ubuntu .
But I tried to reproduce this on the official ubuntu image (on a raspberrypi 4) and got the same failure:

# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu hirsute e59629bf0db9 2 weeks ago 55.2MB

# docker run -ti --rm ubuntu:hirsute apt-get update
Reading package lists... Done
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method /usr/lib/apt/methods/http did not start correctly
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/hirsute/InRelease
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/hirsute-updates/InRelease
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/hirsute-backports/InRelease
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/hirsute-security/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.

This is happening on rasbian. The docker version I use is:
# docker version
Client:
 Version: 18.09.1
 API version: 1.39
 Go version: go1.11.6
 Git commit: 4c52b90
 Built: Fri, 13 Sep 2019 10:45:43 +0100
 OS/Arch: linux/arm
 Experimental: false

Server:
 Engine:
  Version: 18.09.1
  API version: 1.39 (minimum version 1.12)
  Go version: go1.11.6
  Git commit: 4c52b90
  Built: Fri Sep 13 09:45:43 2019
  OS/Arch: linux/arm
  Experimental: false

Changed in cloud-images:
status: New → Confirmed
Revision history for this message
Thomas Bechtold (toabctl) wrote :

@Francesco , could you share the output of `docker version` please?

Revision history for this message
Francesco Chemolli (kinkie) wrote :

Clarifying the context: this happened when the host system was a fully uptodate (as of Jul 2021) Raspbian, and Docker was docker-ce version 19.03.13, build 4484c46, as packaged by docker themselves, running on a Raspberry pi 3 (armhf, 32bit)

It may be an issue with the runtime, because when running the same on the same hardware platform on hirsute with docker version 20.10.2, build 20.10.2-0ubuntu2, the setup works just fine.

I have read that it may have something to do with libseccomp trying to use some privileged access that docker blocks, causing the failure

Revision history for this message
Thomas Bechtold (toabctl) wrote :

Marking as invalid given that this is a problem with the host docker version. Feel free to reopen if you disagree.

Changed in cloud-images:
status: Confirmed → Invalid
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.