-- Our Situation --
We haven't been able to get do-release-upgrade to run on our Ubuntu 16.04 LTS systems in the past few weeks.
We have 100+ machines to upgrade. Have read the other solutions and none of them work so far (eg: How do I upgrade to a newer version of Ubuntu? How to remove obsolete packages after failed release upgrade via do-release-upgrade on Ubuntu? How to only perform LTS upgrades? ) - that is except for the "brute force" method of manually changing the distro in /etc/apt/sources.list[.d/]* .. I'm not a fan of this method as it seems overly messy and not particularly friendly.
Is do-release-upgrade broken on 16.04LTS ? do-release-upgrade worked sometime mid last year, and now it isn't..
-- Some info.. --
* Require a command line based solution as we need to automate this.
We will be updating over 100 machines
* None of the existing solutions get do-release-upgrade to work.
sudo do-release-upgrade
sudo do-release-upgrade -d
sudo do-release-upgrade -c
* update-manager-core package is installed
* File /etc/update-manager/release-upgrades has:
[DEFAULT]
#...
Prompt=lts
* File /etc/update-manager/meta-release has:
# default location for the meta-release file
[METARELEASE]
URI = https://changelogs.ubuntu.com/meta-release
URI_LTS = https://changelogs.ubuntu.com/meta-release-lts
URI_UNSTABLE_POSTFIX = -development
URI_PROPOSED_POSTFIX = -proposed
/etc/update-manager/meta-release (END)
-- Error Messages --
do-release-upgrade :
Checking for a new Ubuntu release
No new release found.
do-release-upgrade -d :
Checking for a new Ubuntu release
Upgrades to the development release are only
available from the latest supported release.
do-release-upgrade -c :
Checking for a new Ubuntu release
No new release found.
UPDATE #1
* Machines are running : Ubuntu 16.04.6 LTS
* Machines are updated every day by cron (apt update+upgrade)
* /etc/apt/sources.list.d/ubuntu.list has :
deb archive.canonical.com/ubuntu xenial partner
/usr/lib/ubuntu-release-upgrader/check-new-release -qcd
– nobody Jan 24 '20 at 11:28I found these two sources.list files for 16.04 LTS - do they look ok to you guys? https://askubuntu.com/questions/863933/ubuntu-16-04-messed-sources-list https://gist.github.com/rohitrawat/60a04e6ebe4a9ec1203eac3a11d4afc1
Thanks for your help
– Bastion Jan 28 '20 at 23:20