Ubuntu is Said to be an Unsupported Distro

Expected Behaviour:

  • Name resolution by the pi-hole succeeds.
  • Running pihole -up succeeds.

Actual Behaviour:

Running pihole -d -c or pihole -up produces:

*** [ DIAGNOSING ]: Operating system
[✗] Distro:  Ubuntu
[✓] dig return code: 0
[✗] Error: Ubuntu is not a supported distro (https://docs.pi-hole.net/main/prerequisites/)

Running dig flurry.com produces:

;; communications error to 127.0.0.1#53: timed out
;; communications error to 127.0.0.1#53: timed out
;; communications error to 127.0.0.1#53: timed out

; <<>> DiG 9.18.28-0ubuntu0.24.04.1-Ubuntu <<>> flurry.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35540
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;flurry.com.			IN	A

;; ANSWER SECTION:
flurry.com.		300	IN	A	76.223.84.192
flurry.com.		300	IN	A	13.248.158.7

;; Query time: 31 msec
;; SERVER: 2600:1700:2df0:1b00::1#53(2600:1700:2df0:1b00::1) (UDP)
;; WHEN: Sat Nov 16 21:34:16 UTC 2024
;; MSG SIZE  rcvd: 71

Debug Token:

https://tricorder.pi-hole.net/WeswF4T7/

Actually, you have a networking issue and Pi-hole is unable to retrieve the list of supported distros, resulting in failure to correctly identify Ubuntu.

You can see the communications error message in the debug log and dig output:

*** [ DIAGNOSING ]: Operating system
[✗] Distro:  Ubuntu
[✓] dig return code: 0
[i] dig response: ;; communications error to <IP>#53: timed out
[✗] Error: Ubuntu is not a supported distro

Note:
You can find the debug log in /var/log/pihole/pihole_debug.log