We have Ubuntu servers (20.04 LTS) without Internet connection. In order to get new apt packages, we have a JFrog Artifactory server with Internet access and connection to our Ubuntu servers mirroring archive.ubuntu.com for specific requests. The
sources.list file is changed accordingly. This works fine for
apt install <package> and package upgrades.
With the release of 22.04 LTS, we now tried to do a distribution upgrade. However,
sudo do-release-upgrade fails with the error message
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings
Ignoring that currently, 22.04 LTS is not yet in this file, I do not know how to circumvent the tool's desire to download this file from the Internet and do the upgrade using our private package repositories.
I see that
do-release-upgrade offers the option
--data-dir. It is only shown using
--help and unfortunately not within its man page (at least not that I can see). Can this be used? Is there any other switch? I am fine with providing my own
meta-release-lts file pointing to our private repositories, if necessary.