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'
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:/
The output from ubuntu:devel is
$ apt-get update
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Fetched 19.5 MB in 7s (2828 kB/s)
Reading package lists...
E: Problem executing scripts APT::Update:
E: Sub-process returned an error code
The output from ubuntu:rolling is as expected.
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.