# Installation pihole fails on Raspbian Stretch Lite

**URL:** <https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478>\
**Category:** Help\
**Created:** [November 15, 2017, 5:45pm UTC](https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478 "2017-11-15T17:45:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![akurmann](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@akurmann](https://discourse.pi-hole.net/u/akurmann)\
**Post date:** [November 15, 2017, 5:45pm UTC](https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478/1 "2017-11-15T17:45:12Z")

</div>

#### Please follow the below template, it will help us to help you!

## Expected Behaviour:

Pihole ought to bei installed

## Actual Behaviour:

Pihole is not installed with the error message "Cloning [https://github.com/pi-hole/pi-hole.git](https://github.com/pi-hole/pi-hole.git) into /etc/.pihole...Unable to clone repository, please contact support"

## Debug Token:

not available

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [November 15, 2017, 6:13pm UTC](https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478/2 "2017-11-15T18:13:38Z")

</div>

Is this the same kind of issue as seen here? [Can't clone on Debian 9.2.1 · Issue #1770 · pi-hole/pi-hole · GitHub](https://github.com/pi-hole/pi-hole/issues/1770)

---

<div class="post-metadata">

**Author:** ![Metta\_Crawler](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/metta_crawler/32/1959_2.png) [@Metta\_Crawler](https://discourse.pi-hole.net/u/Metta_Crawler)\
**Post date:** [November 15, 2017, 10:44pm UTC](https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478/3 "2017-11-15T22:44:40Z")

</div>

Please run this and share the output here:

`dpkg -l ca-certificates`

---

<div class="post-metadata">

**Author:** ![akurmann](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@akurmann](https://discourse.pi-hole.net/u/akurmann)\
**Post date:** [November 16, 2017, 7:36am UTC](https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478/4 "2017-11-16T07:36:49Z")

</div>

> [@Metta\_Crawler](#):
>
> dpkg -l ca-certificates

Here is the ouput:

```auto
"Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================-==============-==============-===========================================
ii ca-certificates 20161130+nmu1 all Common CA certificates
"

```

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [November 17, 2017, 3:13am UTC](https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478/5 "2017-11-17T03:13:53Z")

</div>

What is the output of this command?

```auto
sudo git clone https://github.com/pi-hole/pi-hole.git /etc/.pihole

```

---

<div class="post-metadata">

**Author:** ![Metta\_Crawler](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/metta_crawler/32/1959_2.png) [@Metta\_Crawler](https://discourse.pi-hole.net/u/Metta_Crawler)\
**Post date:** [November 17, 2017, 3:21pm UTC](https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478/6 "2017-11-17T15:21:29Z")

</div>

It can't be the known certificate issue because you have the `ca-certificates` package correctly installed.

---

<div class="post-metadata">

**Author:** ![akurmann](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@akurmann](https://discourse.pi-hole.net/u/akurmann)\
**Post date:** [November 17, 2017, 4:41pm UTC](https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478/7 "2017-11-17T16:41:13Z")

</div>

Here is the output of the above command:  
Cloning into '/etc/.pihole'...  
fatal: unable to access '[https://github.com/pi-hole/pi-hole.git/](https://github.com/pi-hole/pi-hole.git/)': Could not resolve host: github.com

It seems, that the raspi cannot resovle the server "github.com". I just made a check with ping: The current lite installation does not "know" the DNS servers it gets via DHCP from the router.

---

<div class="post-metadata">

**Author:** ![akurmann](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@akurmann](https://discourse.pi-hole.net/u/akurmann)\
**Post date:** [November 17, 2017, 4:46pm UTC](https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478/8 "2017-11-17T16:46:49Z")

</div>

The peculiar thing is, that the pihole installation and the DNS resolving works fine on Debian PIXEL installation on a second raspi also geting the DNS servers from the DCHP server from the router.

---

<div class="post-metadata">

**Author:** ![akurmann](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@akurmann](https://discourse.pi-hole.net/u/akurmann)\
**Post date:** [November 17, 2017, 5:33pm UTC](https://discourse.pi-hole.net/t/installation-pihole-fails-on-raspbian-stretch-lite/5478/9 "2017-11-17T17:33:13Z")

</div>

I have found a solution: After the installation of raspian STRETCH LITE the DNS resolving worked. But during the installation pihole modifies incorrectly the file dhcpcd.conf. It creates correctly a static ip address for eth0 but then state the nameserver as 127.0.0.0 instead of the local DNS server 192.168.1.1.  
Now i have manually added the DNS server 192.168.1.1 (my router) and now the installtion runs without any problem.
