PiHole failing to install on raspbian buster. FTL Error: Unable to get latest release location from GitHub

I wouldn't install with a desktop.

  1. Eats resources like CPU/RAM/disk;
  2. More software means less stable/secure;
  3. You hardly need to use it;
  4. The desktop probably comes with its own network manager/mangler conflicting with Pi-hole's own mangler called dhcpcd5.

Try download/flash the Buster lite version without a desktop,
set timezone/hostname (sudo raspi-config),
run updates (sudo apt update && sudo apt upgrade)
and run the installer again.

And language/keyboard

1 Like

Also forgot to mention to enable SSH "Interfacing options" while running sudo raspi-config.

I've installed buster lite, run the commands you've specified and reran the installer.

Same error same location.

It's a known bug and fixed in version 5.

There's a workaround in https://github.com/pi-hole/pi-hole/tree/fix/latettag_newline but I'm not sure how to actually get that out. A point release at this juncture isn't likely.

Did you try below (create file if dont exists) ?

I had tried that on previous incarnations, should I just try to install v5 fresh or is that just going to cause more issues?

It so, what's the instructions to install v5 fresh? I've seen the upgrade instructions but you need v4 installed for those to work.

It cant do any harm and is easy to revert by just deleting that file again.
Not sure bout fresh v5.

There are no tested instructions to install a fresh copy of 5.0 beta.

There really aren't any right now. I'll see if I can cobble something together that would work but it may take me a bit to do.

1 Like

Ok I tried modifying the resolv.conf.d/head and FTL still failed.

Dan that link you provided made it look like the fresh FTL install was looking for a tbd file and that was the problem, not having a problem with DNS (although that might also be a problem) but the FTL install link tries to update FTL but on a fresh install it's set to tbd not the actual release file?

@DanSchaper , could below work for quick v4 + fix ?

curl -sSL https://install.pi-hole.net | sed 's/grep "Location"/grep --color=never "Location"/' | bash

Nope sorry, still failing at FTL..

EDIT: if it progresses any troubleshooting, aftter modifying the resolv.conf.d/head file and running the install again the resolv.con file still says nameservr 8.8.8.8 so I'm pretty sure it's not losing it's DNS.

I will try to update certificates again.

1 Like

You need to strip off the ^M that curl adds to the end. So the tr -d to remove the special chars is essential.

Not really, tbd is just a variable place holder. It's been removed.

Why are you editing resolv.conf.d/head?

? This is getting very overly complicated, what do the certificates have to do with anything?

One of the accepted solutions to this problem is that github won't release the latest update because of an SSL certificate mismatch and the option to either run the curl with -k or update certificates is offered.

I'm just trying to cover all the bases.

I'm editing that file because DeHakkelaar keeps asking me to do it.

No, that's not the problem. The issue is purely with parsing the curl output.

Don't change 5 things at once or we can't/won't be able to even try to help you.

Like so ?

curl -sSL https://install.pi-hole.net | tr -d '\r' | bash

Or:

curl -sSL https://install.pi-hole.net | sed 's/\r$//g' | bash

EDIT: forgot global

No, use the code exactly as I linked.

latesttag=$(curl -sI https://github.com/pi-hole/FTL/releases/latest | grep --color=never "Location" | awk -F '/' '{print $NF}' | tr -d '[:cntrl:]')