Expected Behavior:
During the installation of Pi-hole the install should succeed with the Root check at the beginning as well as download the FTL file from Github at the end of the install.
Actual Behaviour:
Near the end of the installation and setup of Pi-hole on a Raspberry Pi Zero W, the install checks for an existing FTL file and then attempts to download it from Github. It then comes back and says that it could not connect to Github and the FTL file failed to download because of it. I have reset and attempted the whole process over multiple times using different Raspbian OS versions. Every time it fails. Lately it has also been failing the Root check at the beginning of install as well, and then I am unable to access commands such as /etc/resolv.conf. I am also unable to retrieve the Debug Token because if it’s not allowing me to run a command then it says “-bash: pihole: command not found” This will happen for most of the commands. I have looked at many forums and websites with no success. I am also a beginner when it comes to using Linux OS or Raspbian OS so I’ll need explanations with great detail. Please help me as I’ve been messing around with this for a good 24 hours. Thank you!
Debug Token:
Debug token not possible to get
FYI: I did have the Pi-hole functioning on my first go about a month ago but took it down to design a 3D printed case for it and to also figure out how to set it up for certain devices instead of the whole network. When I tried this back on Tuesday, nothing was working, so that is when I decided to start fresh and wipe the OS. Again please help me. I would greatly appreciate it!
I had the same issue as the OP when I tried to do a fresh pihole install as mine started dying every 6 hrs after a recent upgrade. /etc/resolve.conf showed NAMESERVER 127.0.0.1 pointing to localhost, so the pihole repository was NOT reachable.
Changing it to 8.8.8.8 solved the issue..
One addition, if the pihole command is not installed yet "pihole: command not found", try do the same before running the installer.
And add the -x argument to the install command for verbose output:
sudo tee /etc/resolv.conf <<< $'nameserver 8.8.8.8'
curl -sSL https://install.pi-hole.net | bash -x
If this fails, could you post output for the install command (might want to redact some of the output) ?
I tried doing the commands. Here's what I did with the output:
pi@raspberrypi:~ S sudo tee /etc/resolv.conf <<< $'nameserver 8.8.8.8'
nameserver 8.8.8.8
pi@raspberrypi:~ S pihole -r
bash: pihole: command not found
I then tried again:
pi@raspberrypi:~ S sudo tee /etc/resolv.conf <<< $'nameserver 8.8.8.8'
nameserver 8.8.8.8
pi@raspberrypi:~ S pihole -r
bash: pihole: command not found
pi@raspberrypi:~ S pihole -d
bash: pihole: command not found
I think that the server successfully changed, but still can't perform pihole commands
I reset my Raspberry Pi and changed the nameserver to 8.8.8.8. Then I did the verbose installation, but still came with the same issue as before. It says:
Checking for existing FTL binary...
Downloading and Installing FTL
Error: Unable to get latest release location from GitHub
FTL Engine not installed