Question about Debian installed version

Hi everyone, I have Qubes 4.2 that I installed from 4.1. When I do lsb_release -a I find Debian 11 when I thought I had 12. I then do in my template Debian (the clone of the template is essai)

user@essai:~$ sudo apt update
Hit:1 Index of /debian bullseye InRelease
Hit:2 Index of /r4.2/vm/ bullseye InRelease
Hit:3 Index of /debian-security bullseye-security InRelease
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
All packages are up to date.
user@essai:~$ sudo apt upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@essai:~$ sudo apt dist-upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

And then in etc/os-release I a have :

PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
NAME=“Debian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=debian
HOME_URL=“https://www.debian.org/
SUPPORT_URL=“Debian -- User Support
BUG_REPORT_URL=“https://bugs.debian.org/

What’s going on? Is os-release wrong because I really do have Debian 12, or do I need to upgrade to Debian 12, but then how?
Thanks

Based on the used repositories you’re using debian 11 bullseye and not debian 12 bookworm. Why do you think you’re using debian 12?
You can upgrade your debian version in-place like this:

Or just install new debian 12 template using Qubes Template Manager tool.

2 Likes

there is also the @fepitre script which simplifies the task:
https://github.com/QubesOS/qubes-dist-upgrade/blob/main/scripts/upgrade-template-standalone.sh

Just put it in your templates, make it executable chmod +x upgrade-template-standalone.sh and run it ./upgrade-template-standalone.sh

2 Likes

Thank you for your answers, which have given me a better understanding of how Qubes OS works. With Qubes Template Manager tool, I had the information that Debian 12 was already installed, but with the repository I had the information that it was Debian 11. So, in the end, I deleted my Debian Template and installed Debian 12.