Error: Could not update local repository. Contact support

I've searched but cannot resolve this error based on the FAQ- any help?

Trying to run the installer again gives me
"wget -O basic-install.sh https://install.pi-hole.net

--2019-10-03 03:25:19-- https://install.pi-hole.net/

Resolving install.pi-hole.net (install.pi-hole.net)... failed: Temporary failure in name resolution."

Run the following commands to temporarily reset your Pi nameserver, then repeat the install command.

sudo nano /etc/resolv.conf

edit nameserver 127.0.0.1 to nameserver 9.9.9.9 or your preferred third party DNS service, save and exit

Thank you- That helped run the installer again. Still not completing the install?

[ ] Check for existing repository in /etc/.pihole

[ ] Clone GitHub - pi-hole/pi-hole: A black hole for Internet advertisements into /etc/.pihole

[ ] Check for existing repository in /var/www/html/admin

[ ] Clone GitHub - pi-hole/web: Pi-hole Dashboard for stats and more into /var/www/html/admin

[i] Main Dependency checks...

[ ] Checking for cron

[ ] Checking for curl

[i] Checking for dnsutils (will be installed)

[ ] Checking for iputils-ping

[i] Checking for lsof (will be installed)

[i] Checking for netcat (will be installed)

[ ] Checking for psmisc

[ ] Checking for sudo

[ ] Checking for unzip

[ ] Checking for wget

[i] Checking for idn2 (will be installed)

[i] Checking for sqlite3 (will be installed)

[ ] Checking for libcap2-bin

[i] Checking for dns-root-data (will be installed)

[i] Checking for resolvconf (will be installed)

[ ] Checking for libcap2

[i] Checking for lighttpd (will be installed)

[i] Checking for php-common (will be installed)

[i] Checking for php-cgi (will be installed)

[i] Checking for php-sqlite3 (will be installed)

pi@raspberrypi : ~ $

Ran the installer again with the same error. I've updated via the apt...

What OS and platform are you installing Pi-Hole on?

Linux raspberrypi 4.19.75+ #1270

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"

NAME="Raspbian GNU/Linux"

VERSION_ID="10"

VERSION="10 (buster)"

VERSION_CODENAME=buster

ID=raspbian

ID_LIKE=debian

You can troubleshoot this for a long time. I would do a clean reinstall of Buster, then run sudo apt update and sudo apt upgrade to get it up to date, then run the Pi-Hole installer again.

I just installed Buster and Pi-Hole on a Zero W yesterday with no problems, so I don't think it is a software incompatbility. You mentioned that you were running the installer "again"; did it fail the first time?

1 Like

On a Zero W as well- I've done that at least 8 times already, I've been at this for almost 6 hours already... :confused:

Where are you seeing your initial failure? On any part of the OS install and update, or only when you run the Pi-Hole installer? Which version of the Buster image are you running (Lite, Desktop, date, etc.). I did mine with this image: https://downloads.raspberrypi.org/raspbian_latest

Running buster lite- OS installs and updates fine, fails on the Pi-hole installer, after I go through all the options and am waiting for the final screen to come up telling me the address and password for the web interface/install complete.

If you run this install command, it will provide additional output that may show where the problem lies:

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

That's how I tried installing originally. I'm going to wipe and use Buster desktop like you did and see...

Have you considered the possibility of a hardware problem? If you have a weak power supply or dodgy SD card, this can cause problems. If you have alternates for those, I would use them now.

I hadn't, but just tried new power supply and different sd card. Still seems to quit pi-hole installer at "checking for php-sqlite3.."

I go through all the prompts on the blue screen, seems to be on the last step and then it just disappears with no confirmation or web access info...

[i] Main Dependency checks...
[ ] Checking for cron
[ ] Checking for curl
[i] Checking for dnsutils (will be installed)
[ ] Checking for iputils-ping
[ ] Checking for lsof
[i] Checking for netcat (will be installed)
[ ] Checking for psmisc
[ ] Checking for sudo
[ ] Checking for unzip
[ ] Checking for wget
[i] Checking for idn2 (will be installed)
[i] Checking for sqlite3 (will be installed)
[ ] Checking for libcap2-bin
[i] Checking for dns-root-data (will be installed)
[i] Checking for resolvconf (will be installed)
[ ] Checking for libcap2
[i] Checking for lighttpd (will be installed)
[i] Checking for php-common (will be installed)
[i] Checking for php-cgi (will be installed)
[i] Checking for php-sqlite3 (will be installed)
pi@raspberrypi : ~ $

Furthest I got was 98% during package configuration, then it quit here:

[i] FTL Checks...
[ ] Detected ARM-hf architecture (armv6 or lower) Using ARM binary
[i] Checking for existing FTL binary...
[ ] Downloading and Installing FTL
Error: Unable to get latest release location from GitHub
[ ] FTL Engine not installed

Guess I'll keep troubleshooting tomorrow.

At this point, try manually installing each of those packages marked for installation. One of them is likely failing or requires extra configuration.

As for the failure while installing FTL, was /etc/resolv.conf configured with an external DNS server at that time?

It was configured for an external DNS

Tried installing manually but no luck- I forget the error at this point, couldn't connect

Now when I pull up resolve.conf it's 127.0.0.1 again and I cannot save changes
"# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN"

Run that command exactly as typed. This will output the apt list of packages that it's trying to install and we can then manually run that command and see the output.

1 Like

Stops here:
" debconf-apt-progress -- apt-get --yes --no-install-recommends install dnsutils lsof netcat idn2 sqlite3 dns-root-data resolvconf lighttpd php-common php-cgi php-sqlite3"

Running the installer again it hangs at "update repo in /etc.pihole..."

[ ] Check for existing repository in /etc/.pihole
[i] Update repo in /etc/.pihole...
: Could not update local repository. Contact support.
pi@raspberrypi : ~/Pi-hole/automated install $

Repeatedly getting stuck here.

THEN- run "sudo nano /etc/resolv.conf" change the name server back to 8.8.8.8 (save, verify), run the installer again, same result.