Re: Comments on upgrade steps from one version of Debian to another
On Sun, Aug 21, 2022 at 04:04:02PM +0200, john doe wrote:
> On 8/20/2022 9:48 PM, John Boxall wrote:
> > I created an upgrade script based on something I found a few years ago
> > that indicated the steps to follow to upgrade from one version of Debian
> > to another (e.g. Buster 10 to Bullseye 11). As I am going to need to run
> > this script at some point (I am still running Buster/10 on my systems),
> > I thought I'd ask the Debian user brain trust to comment/critique the
> > scripted steps. So here they are:
> >
> >
> > ############### Start
>
> <snip>
>
> > (I don't even have this part started yet....didn't know I needed it the
> > last time I ran it)
> > #
>
> The lines for the security mirror has changed on Bullseye.
>
> <snip>
>
> > ############### End
> >
> > Thoughts/critique/criticism/flames/etc
> >
>
> The script does not bail out on command failure, you might want to
> takecare of that if you automate this process by way of a script.
> That is all I can say on the cmds.
>
> If I may, for a fiew servers I would do it manually instead of blindly
> using a bunch of commands.
>
> If you need to automate this process, you should familiorize yourself
> with something like Ansible or in anycase a more robust solution.
>
> For upgrading Buster to Bullseye, I used:
>
> $ apt-get update
> $ apt-get upgrade
> $ apt-get full-upgrade
>
>
> For better or worse, Debian let you upgrade or reinstall from scratch.
>
> --
> John Doe
>
For more than one version - since Debian doesn't allow you to skip versions
well - here is a process that may single step you through two or more
versions..
Read the release notes :)
apt-get update ; apt-get dist-upgrade [on old version].
[Just to make absolutely sure you're completely up to date.]
apt-get autoremove
[To remove any cruft.]
Change /etc/apt/sources.list stanzas to the next version [buster->bullseye]
apt-get update ; apt-get upgrade
[Safe upgrade - resolve all errors.]
Reboot.
apt-get dist-upgrade
[Reboot - check to see new kernel comes up, for example]
apt-get autoremove
You _will_ need to modify this if there are major changes between versions
if there's a breakage / if sources list changes.
apt-get is definitely recommended for this at the moment, I think, and it
should really be a process you check over manually because there's a lot
of scope for things to go wrong.
Downgrades / backgrades are NOT supported - so it's worth stepping through
in single steps and checking output, IMHO.
All the very best, as ever,
Andy Cater
Reply to: