ubuntu studio 22.04 lts to 24.04 lts upgrade

Bo Berglund bo.berglund at gmail.com
Mon Dec 9 15:04:07 UTC 2024


On Sun,  8 Dec 2024 19:06:44 -0500 (EST), Robert Heller <heller at deepsoft.com>
wrote:
>> 
>> I see now that in main.log, even after running apt update and apt 
>> dist-upgrade, and getting to 22.04.5 LTS, according to the main.log 
>> file, there are still 203 packages where it failed to find a replacement.
>> 
>> Brian
>> 
>> On 12/8/2024 2:25 PM, Brian wrote:
>> > I thought -d was a debug option, my mistake.
>> >
>> > Brian
>> >
>> > On 12/8/2024 2:21 PM, Brian wrote:
>> >> This upgrade has failed several times recently. After verifying 
>> >> prompt=lts in /etc/update-manager/release-upgrades, I just tried a 
>> >> do-release-upgrade -d and saw the following.
>> >>
>> >> An unresolvable problem occurred while calculating the upgrade.
>> >>
>> >> This was caused by:
>> >>
>> >> * Upgrading to a pre-release version of Ubuntu.
>> >>
>> >> 24.04 LTS is up to a .1 now; has that been changed or held back?
>> >>
>> >> Brian
>> >>
>> 
>
>You have to do a "apt update; apt full-upgrade" of 22.04.5 *before* a 
>do-release-upgrade to 24.04
>

Just curious:

What does do-release-upgrade *really* do?

When I look at the underlying Debian information on their site regarding
distribution upgrades they write in https://wiki.debian.org/DebianUpgrade the
following interesting procedure:

------------------------------------------
# First, ensure your system is up-to-date in it's current release:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get full-upgrade

# In a text editor, replace the codename of your release with that of the next
release in APT's package sources
# For instance, the line
#    deb https://deb.debian.org/debian/ buster main
# should be replaced with
#    deb https://deb.debian.org/debian/ bullseye main

$ sudo nano /etc/apt/sources.list /etc/apt/sources.list.d/*

..non-free discussion ..

# Clean and update package lists
$ sudo apt-get clean
$ sudo apt-get update

# Perform the major release upgrade, removing packages if required
# Interrupting this step after downloading has completed is an excellent way to
stress-test your backups

$ sudo apt-get upgrade
$ sudo apt-get full-upgrade

# Remove packages that are not required anymore
# Be sure to review this list: you may want to keep some of them

$ sudo apt-get autoremove

# Reboot to make changes effective (optional, but recommended)

$ sudo shutdown -r now

------------------------------------------
Is this what is "under the hood" in do-release-upgrade?

What I wonder is if this is possible to do on an Ubuntru 2020.04.6 server even
when doing the update, upgrade, full-upgrade, reboot does *not* bring up the
prompt for do-release-upgrade when I log on?


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list