Unable to update FTL on Ubuntu, also unable to repair


Please follow the below template, it will help us to help you!

Expected Behaviour:

I want to update to the latest version of FTL. I run
sudo apt-get update
pihole -up

Actual Behaviour:

sudo apt-get update works fine

pihole -up shows this in at the start: fatal: unable to access ‘https://github.com/pi-hole/pi-hole.git/’: Failed to connect to github.com port 443: Connection refused

I have tried pihole -r, that gets to the loading bar then tells me the update will close.

I have had FTL update errors in the past, I have added “nameserver” to /etc/resolv.conf and nothing changed.

I have restarted the service for no change.

Debug Token:



It looks like you can resolve github.com to a proper IP address so the Pi-hole DNS is working. Getting a connection refused is typically a firewall or content blocker issue.

What does curl -IL https://github.com/pi-hole/pi-hole.git show?


It shows curl: (7) Failed to connect to github.com port 443: Connection refused


Something is blocking you from accessing GitHub.

What does dig github.com show?


dig github.com

; <<>> DiG 9.11.3-1ubuntu1.5-Ubuntu <<>> github.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42455
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

; EDNS: version: 0, flags:; udp: 4096
;github.com.                    IN      A

github.com.             2       IN      A

;; Query time: 0 msec
;; WHEN: Fri Mar 15 12:32:12 AWST 2019
;; MSG SIZE  rcvd: 55


You’re blocking GitHub.


Ok, I have no idea how. Ubuntu is running on a VM, and the firewall doesn’t block github as far as I know. I’ll investigate.



It looks like Pi-Hole is blocking github. This command will show which blocklist is the offender:

pihole -q -adlist github.com

To unblock it, add it to the white list.


Thanks, I added it to the whitelist but still can’t update. The error message about github is gone, but the update stops at

Checking for php7.2-sqlite3

When I run

pihole -r

I get the same result


Resolved. This VM also hosts a unifi controller that apparently had a broken upgrade that was blocking all updates. I ran

sudo apt-get upgrade -y

and then

pihole -up

worked flawlessly