Pi-Hole on Ubuntu 20.04 Server

I don't know if this is the right category, but I just wanted to put this here so when other people search (as I did) they can find it.

I'm completely new to Pi-Hole and wanted to start trying it out, I didn't have a spare RPi laying around, so I did the next best thing for now. I went to https://pi-hole.net/ saw the image indicating it worked on Ubuntu, without reading any further, (I know stupid mistake) I went to Ubuntu and downloaded the latest Ubuntu 20.04 Server and did a fresh install on a spare computer.

While Ubuntu was installing I then continued reading about Pi-Hole installation and saw that it was only supported up to 18.x :unamused:

I decided what the hell, while waiting for 18.04 server to download I'll try installing it anyway and see what happens. I initiated the install for Pi-Hole with:

curl -sSL https://install.pi-hole.net | bash

And everything is working flawlessly :+1:

I did order a RPi which I will switch to, but for now I have a working Pi-Hole on Ubuntu 20.04 Server.

hi iam new on this i try and i get"("" Error: Unable to update package cache. Please try "apt-get update")""
a do update but i get the same error can any on help

What is the complete output of sudo apt update

thanks for your reply when the output of the update apt without any Error the installation was complete but now on termenal i get active but i have the status on the dashboard is offline and i cant resolve it

murad@server:~$ sudo systemctl status pihole-FTL.service
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated)
Active: active (exited) since Sat 2020-08-15 10:27:45 EEST; 1min 15s ago
Docs: man:systemd-sysv-generator(8)
Process: 92068 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Aug 15 10:27:45 server systemd[1]: Starting LSB: pihole-FTL daemon...
Aug 15 10:27:45 server pihole-FTL[92068]: Not running
Aug 15 10:27:45 server su[92086]: (to pihole) root on none
Aug 15 10:27:45 server su[92086]: pam_unix(su:session): session opened for user pihole by (uid=0)
Aug 15 10:27:45 server su[92086]: pam_unix(su:session): session closed for user pihole
Aug 15 10:27:45 server systemd[1]: Started LSB: pihole-FTL daemon.

Status

Active FTL offline
Load: 0.05 0.12 0.1
Memory usage: 3.7 %

Your debug token is: https://tricorder.pi-hole.net/vy9wcxjovh

You have another DNS server running on port 53. This is preventing pihole-FTL from binding to that port.

[53] is in use by named (https://docs.pi-hole.net/main/prerequisites/#ports)

Your debug log shows multiple instances of this running.

thanks
who can i disable the other DNS server ?

thanks
i stop the service BIND9 and i still have the FTL offline
i restart the box and also still offline
debug token is: https://tricorder.pi-hole.net/spgjckrpda

Named is still running.

i remove the bind9 and the Named i get it offline
debug token is: https://tricorder.pi-hole.net/5bbaqfy9ci

Did you start/restart FTL?

sudo service pihole-FTL restart

Also, your web admin interface is open to the internet.

i restart pihole-FTL still offline also
murad@server:~$ sudo service pihole-FTL restart
murad@server:~$

sudo service pihole-FTL status

murad@server:~$ sudo service pihole-FTL status
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated)
Active: active (exited) since Mon 2020-08-17 02:13:52 EEST; 16min ago
Docs: man:systemd-sysv-generator(8)
Process: 7213 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Aug 17 02:13:51 server systemd[1]: Starting LSB: pihole-FTL daemon...
Aug 17 02:13:51 server pihole-FTL[7213]: Not running
Aug 17 02:13:52 server su[7234]: (to pihole) root on none
Aug 17 02:13:52 server su[7234]: pam_unix(su:session): session opened for user pihole by (uid=0)
Aug 17 02:13:52 server su[7234]: pam_unix(su:session): session closed for user pihole
Aug 17 02:13:52 server systemd[1]: Started LSB: pihole-FTL daemon.

This shows that pihole-FTL was active for 16 minutes at the time you ran this command.

but on the web interface i get FTL offline on the status side

i do :murad@server:~$ traceroute cnn.com
traceroute to cnn.com (151.101.129.67), 64 hops max
1 82.213.0.245 0.459ms 0.389ms 0.411ms
2 10.74.42.54 0.487ms 0.477ms 0.498ms
3 193.251.141.131 59.558ms 59.403ms 56.926ms
4 62.67.23.238 59.114ms 59.576ms 59.219ms
5 4.69.163.18 61.662ms 60.649ms 60.653ms
6 4.69.163.22 60.215ms 59.612ms 59.340ms
7 62.115.121.5 59.421ms 59.629ms 59.432ms
8 * * *
^C
murad@server:~$ nslookup cnn.com
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
Name: cnn.com
Address: 151.101.65.67
Name: cnn.com
Address: 151.101.129.67
Name: cnn.com
Address: 151.101.1.67
Name: cnn.com
Address: 151.101.193.67
Name: cnn.com
Address: 2a04:4e42:400::323
Name: cnn.com
Address: 2a04:4e42:200::323
Name: cnn.com
Address: 2a04:4e42::323
Name: cnn.com
Address: 2a04:4e42:600::323

murad@server:~$

Hi i removed the dnsmasq and re-install it
the main prob is the status on the dashboard still FTL-offline
murad@server:~$ sudo service pihole-FTL status
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated)
Active: active (exited) since Mon 2020-08-17 08:41:16 EEST; 50min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 43310)
Memory: 0B
CGroup: /system.slice/pihole-FTL.service

Aug 17 08:41:16 server systemd[1]: Starting LSB: pihole-FTL daemon...
Aug 17 08:41:16 server pihole-FTL[14046]: Not running
Aug 17 08:41:16 server su[14070]: (to pihole) root on none
Aug 17 08:41:16 server su[14070]: pam_unix(su:session): session opened for user pihole by (uid=0)
Aug 17 08:41:16 server su[14070]: pam_unix(su:session): session closed for user pihole
Aug 17 08:41:16 server systemd[1]: Started LSB: pihole-FTL daemon.

debug token is: https://tricorder.pi-hole.net/c27awxfu75