Like several users I was having trouble updating FTL to 4.0. Couldn't connect to github.com. Searching this forum, below are the three 'fixes' I found and the order in which I did them that finally got me updated to 4.0. After each step I would check if I could update, if it didn't work, I went to the next.
- In /etc/init.d/pihole-FTL, change
su -s /bin/sh -c "/usr/bin/pihole-FTL" "$FTLUSER"
to
/usr/bin/pihole-FTL
-
change local name server in /etc/resolv.conf from 127.0.0.1 to 1.1.1.1
-
Run the following update command
pihole checkout master
hope this helps someone