PiHole not working after upgrading Ubuntu Server from 18.04 to 20.04

Expected Behaviour:

Fully working PiHole setup

Actual Behaviour:

I have tried to do the following with no success:

  • run 'pihole -r' to repair the setup
  • uninstall with 'pihole uninstall' and reinstall

Debug Token:

[✓] ** FINISHED DEBUGGING! **

    * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
    * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
    * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.
[i] Debug script running in automated mode
    * Using curl for transmission.
[✗]  There was an error uploading your debug log.
   * Please try again or contact the Pi-hole team for assistance.
   * A local copy of the debug log can be found at: /var/log/pihole_debug.log

I can provide the log to a mod as it contains sensitive data.

This will temporarily reset the nameserver on the Pi to bypass Pi-Hole DNS.

sudo nano /etc/resolv.conf

edit nameserver 127.0.0.1 to nameserver 9.9.9.9 or your preferred third party DNS service, save and exit

Run pihole -d and upload the debug log

Thank you for your message, but I'm not using a Pi and the nameserver is already set.

[✗]  There was an error uploading your debug log.

I'm still getting the same message when trying to run 'pihole -d':

root@srv-ubuntu-01:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.

nameserver 1.1.1.1

Do you want me to send you the log in a PM to take a look (if you have the time)?

Ubuntu 20 is not a supported OS and you will need to do some workarounds to get it to work with Pi-hole.

https://www.reddit.com/r/pihole/comments/g86xo8/after_ubuntu_2004_upgrade_unable_to_start_dns/

1 Like

Thank you again.
I did a 'sudo rm /etc/dnsmasq.d/lxd' as suggested in the Reddit post and also 'pihole -r'.
Now everything works just fine.

Are there any plans to support Ubuntu 20.04 in the near future?

Yes. .

1 Like

Hi,

i just installed ubuntu 20.04 as a new VM on vmware workstion pro.

  • pihole woks just fine
  • unbound works just fine
  • wireguard also perfect

i also updated pihole to v.5 - also this works for me fine on ubuntu 20.04. (VM)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.