do-release-upgrade fails with an IPv6 address for the proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1) Ubuntu release
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Description: Ubuntu 20.04.6 LTS
Release: 20.04
2)
ubuntu-
Installed: 1:22.04.20
Candidate: 1:22.04.20
Version table:
*** 1:22.04.20 500
500 http://
100 /var/lib/
1:22.04.10 500
500 http://
3)
From its initial installation with Ubuntu 20.04, this system has been using a local proxy using its IPv6 address.
This has been configured for apt, which worked fine.
$ cat /etc/apt/
Acquire:
Acquire:
However, when I tried to upgrade to 22.04 using do-release-upgrade, the command failed immediately:
$ sudo do-release-upgrade
proxy 'http://[fc00:cafe:
Checking for a new Ubuntu release
Failed to connect to https:/
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-
4) I expected the upgrade to a newer release to work.
Workaround found:
It was suggested that I add a name for the server in /etc/hosts, which I did, and then the command ran without a hitch (and once it finished, I checked the same issue is present on Ubuntu 22.04)
$ grep proxy /etc/hosts
fc00:cafe::1 proxy
$ cat /etc/apt/
Acquire:
Acquire:
This is implemented in update-manager. update-manager generally only supports a very narrow subset of the configuration and then tries to do its own downloading rather than reusing apt's download code which would handle this all correctly.