[RBPi3] Cloning https://github.com/pi-hole/pi-hole.git into /etc/.pihole...Unable to clone repository, please contact support

I realize this is an unhelpful error message, but it's currently all I have to work with.

I had Pi-Hole installed once before, then I removed it through the uninstaller and now I wish to re-install.

I run the install command as sudo, and it does the whole GUI installer, but the second it tries to clone from the repo, it fails.

If I try to clone manually, it clones just fine.

I am trying to install over wlan0, since I am using my wireless chip on my Raspberry Pi 3.

After the install fails, I have to run 'service dnsmasq start' otherwise I am unable to access the internet through my device anymore.

It stops dnsmasq before the installer clones Github, and I think that makes it unable to connect to Github since my networking stops working.

Running into same issues with a fresh Pi + Stretch with cable plugged into Pi. Is this because when selecting wlan0 interface during the install, pi-hole messes with the static IP settings? dnsmasq won't even work for me. Should I file bug on GitHub?

Since Raspbian sets the static IP address in the /etc/dhcpcd.conf, this is the file that we use for IP addressing. If you had previously set a static IP address on the RPi and selected a different IP address during the installation then you may have two sections in that file that configure the IP address for the RPi. Check that file, and see if the end of the file contains the proper IP address. As to dnsmasq not working, can you tell us a little more about what isn't working? sudo systemctl status dnsmasq output or any errors that are being generated would help with troubleshooting.

The error occurred on a completely fresh RPi (NOOBS+updates), no static IP had been set manually.

/etc/dhcpcd.con before Pi-hole install:

Pi-hole install options:

  • Interface: wlan0
  • DNS: Google
  • Protocols: IPv4, IPv6
  • Static IP: 192.168.1.22/24, Gateway 192.168.1.1
  • Web admin: on
  • Log: on

And then installer exit with error: Cloning https://github.com/pi-hole/pi-hole.git into /etc/.pihole…Unable to clone repository, please contact support

/etc/dhcpcd.con right after Pi-hole exit error:

running sudo service dnsmasq start gave me error:
Failed to start dnsmasq.service: Unit dnsmasq.service not found.

sudo systemctl status dnsmasq output:
Unit dnsmasq.service could not be found.

Let me know how else I can help. Bought this RPi just for Pi-hole so have no problem starting from scratch.

The config file snippets look okay, you can see in the post-install config that the static IP address is set for the device. It's odd that you don't have dnsmasq installed though, that should have been installed as a dependency when the script was run. Can you show the output from

apt-cache policy dnsmasq

Also, you can run the installer in a more verbose mode that may show why the clone is failing. That would be using the command:

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

apt-cache policy dnsmasq output:

dnsmasq:
Installed: (none)
Candidate: 2.76-5+rpt1+deb9u1
Version table:
 2.76-5+rpt1+deb9u1 500
    500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
 2.76-5+deb9u1 500
    500 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages

verbose install result:

Hope this helps. Let me know what else you want me to try.

Any update on this? Only manual install will do? I'm facing the exact same issue.

Have you tried temporarily changing the dns server in /etc/resolv.conf?

Does this help?