ubuntu studio 22.04 lts to 24.04 lts upgrade

Robert Heller heller at deepsoft.com
Mon Dec 9 16:30:19 UTC 2024


At Mon, 09 Dec 2024 16:04:07 +0100 bo.berglund at gmail.com, "Ubuntu user technical support,? not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:

> 
> 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?

do-release-upgrade is a script that [simplified explaination] updates the 
file(s) in /etc/apt/sources.list and /etc/apt/sources.list.d to the new 
release and then does apt update;apt full-upgrade;apt autoremove.

Note: it is a little more complicated, but that is essentually what it does 
-- it also does some checks and a few other things.  On bare Debian systems 
[Raspberry Pis, BeagleBones] I have managed to do an major upgrade by just 
hacking /etc/apt/sources.list, then apt update;apt full-upgrade;apt 
autoremove.  Minor issues, but generally worked well enough.

> 
> 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?


More or less.  Some additional checks are included.

> 
> 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?

Probably.  If you don't see the do-release-upgrade prompt it just means you 
didn't install the package containing do-release-upgrade (I don't recall what 
package that is).

> 
> 

-- 
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                          



More information about the ubuntu-users mailing list