do-release-upgrade fails with an IPv6 address for the proxy

Bug #2085735 reported by Laurent B
6
This bug affects 1 person
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-release-upgrader-core:
  Installed: 1:22.04.20
  Candidate: 1:22.04.20
  Version table:
 *** 1:22.04.20 500
        500 http://mirrors.ircam.fr/pub/ubuntu/archive jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:22.04.10 500
        500 http://mirrors.ircam.fr/pub/ubuntu/archive jammy/main amd64 Packages

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/apt.conf.d/90curtin-aptproxy
Acquire::http::Proxy "http://[fc00:cafe::1]:3128";
Acquire::https::Proxy "http://[fc00:cafe::1]:3128";

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::1]:3128' looks invalid
Checking for a new Ubuntu release
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.

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/apt.conf.d/90curtin-aptproxy
Acquire::http::Proxy "http://proxy:3128";
Acquire::https::Proxy "http://proxy:3128";

Revision history for this message
Julian Andres Klode (juliank) wrote :

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.

affects: ubuntu-release-upgrader (Ubuntu) → update-manager (Ubuntu)
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.