Public bug reported:

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";;

** Affects: ubuntu-release-upgrader (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2085735

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2085735/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to