Behind proxy, ubuntu:devel apt-get update crashes on APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'

Bug #1947773 reported by dualBootLaptop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Docker Images
New
Undecided
Unassigned

Bug Description

When behind a proxy, running apt-get update on ubuntu:devel fails.

ubuntu:rolling works fine.

All the proxy settings are properly set, specifically using https://gitlab.com/shell-bootstrap-scripts/network-settings , so that apt-get update works fine on ubuntu:rolling. If you like, you can copy https://gitlab.com/shell-bootstrap-scripts/network-settings behind a proxy (and change the proxy settings to the appropriate settings) to reproduce.

The output from ubuntu:devel is

$ apt-get update
Get:1 http://security.ubuntu.com/ubuntu impish-security InRelease [90.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu impish InRelease [270 kB]
Get:3 http://security.ubuntu.com/ubuntu impish-security/universe amd64 Packages [2528 B]
Get:4 http://security.ubuntu.com/ubuntu impish-security/main amd64 Packages [2764 B]
Get:5 http://archive.ubuntu.com/ubuntu impish-updates InRelease [90.7 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/main amd64 Packages [20.4 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 [2528 B]
Fetched 19.5 MB in 7s (2828 kB/s)
Reading package lists...
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

The output from ubuntu:rolling is as expected.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for the report.

This issue is actually not related to proxy settings (albeit the confusing error message); rather, it was a problem with our container stack and the newer glibc on Ubuntu Impish. We are working on this bug:

https://bugs.launchpad.net/cloud-images/+bug/1943049

It has been fixed on Ubuntu Impish (which means that if your host is running Impish, you will be able to run "apt-get update" inside an ubuntu:devel image), but the fix hasn't landed on Ubuntu Focal/Bionic/Hirsute yet. I am assuming you're using one of those 3 versions of Ubuntu as your host.

I will mark this bug as a duplicate of #1943049, but let me know if you think this is a different issue (in which case I'd kindly ask that you provide further steps to reproduce it).

Thanks.

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.