Upgrade to Debian 12

Hi all, I want to upgrade my Debian 11 supervised installation to Debian 12 (as I am getting a warning for unsupported OS). I seem to remember I needed to do a bit more than just update & upgrade when I went from 10 to 11. But (probably due to lack of sufficient google-fu) I cannot find a step-by-step guide to upgrading from 11 to 12 without disruption to the Home assistant installation. Is there such a guide or is it really a matter of simply following the steps e.g. here https://www.cyberciti.biz/faq/update-upgrade-debian-11-to-debian-12-bookworm/?

TIA for any help.
Maarten

It is hard to say, because a Supervised installation is not a specific setup.
This is such a basic thing you should know if you are running a Supervised installation.

There might be something with the Python environment, because I think it is still on 3.11 on Debian 12, but you might have updated that on Debian 11 already.
But what else there might be of issues will have to been seen when you update, since you do not have knowledge about your system beforehand.

Upgrading major releases is never straightforward, trust me, you will miss something. Like a custom app that you installed and there are gotchas like a huge number of system library changes that can also affect your apps.

Now may be a good time to ask yourself why you need a supervised installation. Does it bring you any ease of use or access to the operating system that a VM or docker install can’t OOTB provide?

FYI I went from a docker installation to full HAOS running on proxmox and for the first time ever I got rid of the parent Ubuntu hosting OS
I now have Ubuntu running parallel to the HA VM as an LXC container

1 Like

There is no way of upgrading from 11 to 12 without interrupting home assistance.

You will need at least a reboot.
Your google foo is not strong:
https://www.debian.org/releases/trixie/release-notes/upgrading.html

I would create a backup of home assistance and possibly other stuff and start from scratch.
Way easier these days with containers.

Without disruption to the HA installation will not be possible. But if all goes well the procedure wont take much longer than 20 - 30 minutes. Look HERE.

1 Like

Thanks Tamsy, that is exactly what I was looking for. Need to work on that google-fu! Anyway, I realise that me saying “without disruption” was a bit misleading - I know of course things should be shut down/rebooted so there would be no way to avoid interruption. But what I meant to say was that I would like to avoid as much as possible tinkering with home assistant, just upgrade to Bookworm and get things running again for as far as possible. Thanks again, and cross fingers things will go smoothly.

1 Like

Very understandable.

Be sure to follow that upgrade guide to Debian 12 by the book. Especially when it comes to doing the upgrade as non-root user. Also mind the addendum in case you run into being unable to reach certain sites (DNS errors).

Good luck :slightly_smiling_face:

The issue with Supervised installation and such guides is that when it comes to upgrading the OS, then the guide for that should be done by the same person that made the first one.
Switching author on the guides open up to problem, because the authors do not take into consideration what the other ones have done in their guide of special quirks.

I agree, I’ve been using linux and distros personally and professionally since the early days of Linus’ kernel release.

I don’t care what anyone says but when it comes to upgrades it’s still brown pants time.

Maybe consider a rolling release distro like arch - you sure know quick what breaks after every update but at least you know exactly what the root cause is where as a full upgrade of a distro like debian/ubuntu - you’ll find there are way too many moving parts and repairing will take longer

:thinking: I might take this advice myself - is there a bleeding edge debian rolling release distro ? :grimacing:

I am working closely together with @kanga_who on this one, btw. This is the reason why I didn’t put that upgrade guide into an own thread.

Nice, then we are in the same boat :+1:t3:

2 Likes

It was just a general observation and I do actually not see what guide the thread starter used, so it is hard to say how it will go.