Can't update Pi-hole on Raspbian 12

Hello,
I've installed Pi-hole a while ago on an old Raspberry Pi 1 and until now, everything worked fine. I've upgraded Raspbian to v. 12 (Bookworm) some time ago.

I've noticed today that if I want to update Pi-hole, I get a message with "Unsupported OS detected: Raspbian 12". I don't really understand why, as Debian 12 is in the list of supported OS. Is it because it's the Raspbian variant?

Pi-hole seems to work still but the FTL part has an update that I can't apply because of this and I'm not sure if I should force it with the env var, nor if the error is normal.

EDIT: whoops, I just saw that there's a different line for RaspberryPi OS/Raspbian in the compatibility table and mentions Bullseye (11) at best, which explains the error message...

Is there a reason for this? I.e. has support for the Pi OS been dropped, or is it just delayed for that version? Are there known issues with it or is it safe to force the update?

Debian 12 was released, but there is no official Raspberry Pi OS 12 yet.

From Raspberry Pi website:

Note:
this is valid for every version (Desktop/Lite - 32/64-bit).

Yeah, I've seen that afterwards. Any idea if support will come later or if it's been dropped? or if it's fine to force the update, if there are known issues with Pi OS 12?

I can't answer that.
That are no tests for Pi-hole with Rapsberry Pi OS 12 because it wasn't released yet.

The currently supported and tested Operating Systems are:

Distribution Release Architecture
Raspberry Pi OS (formerly Raspbian) Buster / Bullseye ARM
Ubuntu 20.x / 22.x / 23.x ARM / x86_64
Debian 10 / 11 / 12 ARM / x86_64 / i386
Fedora 36 / 37 / 38 ARM / x86_64
CentOS Stream 8 / 9 x86_64

Also note that the RPi Foundation officially discourages in-place upgrades to new releases.

I wonder how you managed to do so if hasn't been released yet?

Well, Raspbian/Raspberry Pi OS is just a Debian-based distro with extra specific repos. I saw that Debian 12 stable had been released, checked that the Pi-specific repos had a bookworm branch, changed the sources.list and did a dist-upgrade.

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log

It appears you are running Debian, but it is showing to the OS as Raspbian.

Used the web interface. Log should be there: https://tricorder.pi-hole.net/0mNi6lXX/

Well, I used the Pi installer. I really can't remember, though, if my last installation dates from before the change of name from Raspbian to Raspberry Pi OS. I might have installed it when it was the version based on Debian 9 or 10, and then upgraded to newer versions when they were released.

I don't really understand why you think I'm running Debian and it's showing the OS as Raspbian.

Because there has been no release of a Raspberry Pi OS 12 (Bookworm). Their latest release is 11 (Bullseye). Screen capture from their software page today:

What is in your apt sources list?

cat /etc/apt/sources.list

For an out of the box Raspbian 11 install on one of my Pi's, it looks like this:

cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi

And, how is your OS reporting itself?

cat /etc/os-release

Yes, but as I said, I changed the sources from bullseye to bookworm and did a dist-upgrade.

sources.list:

deb http://raspbian.raspberrypi.org/raspbian/ bookworm main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ bookworm main contrib non-free rpi

os-release:

PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Use the "unsupported OS" bypass on Pi-hole installer/updater, and see if it works. I suspect it will.

We don't support OS's until they are officially released.

Yeah, I'm a bit hesitant to use the bypass, I was wondering if someone already tried it and could confirm that everything worked fine.

I'll probably try it but just in case, if someone has concrete experience on this...

BTW, it seems that the official release of Raspbian/Raspberry Pi OS 12 is october. Can we expect a quick upgrade of Pi-hole to support it or there's no ETA? Because if it's just a matter of weeks, it could be preferable for me to wait for it.

Pihole will run on any supported version of Raspberry OS.
New info on PiHole: Reddit - Dive into anything

I've done that In August and pihole works with a minor restriction in my case.
I've DHCP enabled and would normally set my DNS to unbound in my raspis localhost.
However, thats broken for me. If you switch the DNS for now to a public Server, it all works fine for now. I have to check out the unbound config again, when I have the time.

OK. So, I forced the update and it seems to have gone well, no apparent issue.

I'm in the same situation. Can you please tell me how exactly you "forced the update"? Update what to what version? And how? Please and thank you in advance.

When running pihole -up, I got the following message initially (before posting here):

If you are seeing this message and you do have a supported OS, please contact support.

  https://docs.pi-hole.net/main/prerequisites/#supported-operating-systems

  If you wish to attempt to continue anyway, you can try one of the following commands to skip this check:

  e.g: If you are seeing this message on a fresh install, you can run:
         curl -sSL https://install.pi-hole.net | sudo PIHOLE_SKIP_OS_CHECK=true bash

       If you are seeing this message after having run pihole -up:
         sudo PIHOLE_SKIP_OS_CHECK=true pihole -r
       (In this case, your previous run of pihole -up will have already updated the local repository)

Given that I had just run pihole -up and that it reloaded the repos' content, I used the command mentioned:

sudo PIHOLE_SKIP_OS_CHECK=true pihole -r

Apparently, the -r option is used to repair the installation, so I'm not sure if it was actually the proper one to use (-up might be the one to use? maybe without sudo?) but it seems to have done the trick.

If you don't have the same message as above with the command mentioned when trying to update, you might not be in the same situation.

We have added support for Raspbian 12:

dig +short -t txt versions.pi-hole.net @ns1.pi-hole.net
"Raspbian=10,11,12 Ubuntu=20,22,23 Debian=10,11,12 Fedora=36,37,38 CentOS=8,9"

Nice. Is there something specific to do on my side or can I just assume that it'll simply work when using the update next time (instead of having to force it)?