Public bug reported:

From https://askubuntu.com/q/1568495/1004020 .

>  Why in the world would do-release-upgrade not simply say something
useful like "We really appreciate you trying to fix your issue 2 years
ago by upgrading to 24.10, BUT... You kind of hurt yourself there." OR..
"ERROR: You can't upgrade from 24.10 because you didn't do it within the
9 month timeframe. You should/need to install a fresh copy of a newer
version, and remember this lesson. Sorry."

# Actual behavior

```
root@aurora:~# sudo do-release-upgrade
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http-/www.ubuntu.com/releaseendoflife
= Welcome to Ubuntu 26.04 LTS 'Resolute Raccoon' =

... Deleted Boilerplate info

Continue [yN] y
Get:1 Upgrade tool signature [833 B]
Get:2 Upgrade tool [958 kB]
Fetched 959 kB in 0s (0 B/s)
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py:237: 
Warning: W:Download is performed unsandboxed as root as file 
'resolute.tar.gz.gpg' couldn't be accessed by user '_apt'. - pkgAcquire::Run 
(13: Permission denied)
  result = fetcher.run()
authenticate 'resolute.tar.gz' against 'resolute.tar.gz.gpg'
extracting 'resolute.tar.gz'

Reading cache

Distribution data outdated

Please ensure all package updates are installed, and then try again.
```

# Expected behavior

```
root@aurora:~# sudo do-release-upgrade
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore. Furthermore, upgrading from it 
might not be supported either.
For upgrade information, please visit:
http-/www.ubuntu.com/releaseendoflife
= Welcome to Ubuntu 26.04 LTS 'Resolute Raccoon' =

... Deleted Boilerplate info

Continue [yN] y
Get:1 Upgrade tool signature [833 B]
Get:2 Upgrade tool [958 kB]
Fetched 959 kB in 0s (0 B/s)
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py:237: 
Warning: W:Download is performed unsandboxed as root as file 
'resolute.tar.gz.gpg' couldn't be accessed by user '_apt'. - pkgAcquire::Run 
(13: Permission denied)
  result = fetcher.run()
authenticate 'resolute.tar.gz' against 'resolute.tar.gz.gpg'
extracting 'resolute.tar.gz'

Reading cache

Distribution data outdated

Please reinstall Ubuntu to upgrade. Do not try again with do-release-upgrade on 
an outdated release.
```

** 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/2161383

Title:
  Improve error for releases lacking upgrade paths

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to