3

The following command was used to upgrade Ubuntu 20.04 to version 22.04:

sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt-get autoremove && sudo apt install update-manager-core && sudo do-release-upgrade -d

Unfortunately, I get the following error:

Checking for a new Ubuntu release
Failed to connect to https://changelogs.ubuntu.com/meta-release-development. Check your Internet connection or proxy settings
Upgrades to the development release are only 
available from the latest supported release.
cipricus
  • 4,066
  • 4
  • 47
  • 106

3 Answers3

4

Use the commands individually:

sudo apt update
sudo apt upgrade && sudo apt dist-upgrade
sudo update-manager -d

I had issues when downloading packages using a nearby server so try it with the main server.

andrew.46
  • 39,359
manoj
  • 41
2

I had the same problem when upgrading from Ubuntu 20.04 to 22.04 behind a proxy server like apt-cacher or apt-cacher-ng (or behind a corporate firewall), and also for an upgrade from Ubuntu 18.04 to 20.04.

I could fix this problem as follows:

As the error message states, the OS-upgrader do-release-upgrade cannot receive the file meta-release-development through https:

Failed to connect to https://changelogs.ubuntu.com/meta-release-development. Check your Internet connection or proxy settings

The solution is to use http instead of https for the transmission via proxy. This can be configured by tiny changes in the config file /etc/update-manager/meta-release:

sudo editor /etc/update-manager/meta-release
     # replace every "https" with "http"
sudo apt update
sudo do-release-upgrade
neutrino
  • 109
0

This message can occur if your proxy server (eg: apt-cacher-ng) doesn't support HTTPS - to work around this add changelogs.ubuntu.com to the PassThroughPattern directive in its configuration file and restart.