# Pihole installation works only after 2 installs

**URL:** https://dietpi.com/forum/t/pihole-installation-works-only-after-2-installs/1568
**Category:** Troubleshooting
**Created:** [21 October 2017 09:12 UTC](https://dietpi.com/forum/t/pihole-installation-works-only-after-2-installs/1568 "2017-10-21T09:12:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ripa](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@ripa](https://dietpi.com/forum/u/ripa)
#### Post date: [21 October 2017 09:12 UTC](https://dietpi.com/forum/t/pihole-installation-works-only-after-2-installs/1568/1 "2017-10-21T09:12:55Z")

</div>

Hey,

you need to install Pihole, reboot, uninstall Pihole, reboot, install Pihole to get it to work.

---

<div class="post-metadata">

### Author: ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)
#### Post date: [21 October 2017 13:13 UTC](https://dietpi.com/forum/t/pihole-installation-works-only-after-2-installs/1568/2 "2017-10-21T13:13:07Z")

</div>

> [@ripa](#):
>
> Hey,
> 
> you need to install Pihole, reboot, uninstall Pihole, reboot, install Pihole to get it to work.

Hi,

Thanks for the report.

We were unable to replicate this on RPi 3/x86\_64.

Can you confirm which device you are using, and, if any other software is installed on the system?

---

<div class="post-metadata">

### Author: ![k-plan](https://dietpi.com/forum/user_avatar/dietpi.com/k-plan/32/12_2.png) [@k-plan](https://dietpi.com/forum/u/k-plan)
#### Post date: [21 October 2017 16:20 UTC](https://dietpi.com/forum/t/pihole-installation-works-only-after-2-installs/1568/3 "2017-10-21T16:20:21Z")

</div>

> [@ripa](#):
>
> you need to install Pihole, reboot, uninstall Pihole, reboot, install Pihole to get it to work.

Yes correct, depending on device you used. This happen form time to time after putting a fresh image on sd card, since DietPi use the default PiHole install methode (install.sh) and not DietPi own PiHole repository any more.  
Installation breaks in the middle, without a message and you are back on cmd line. If this happen, you will notice, there is no pihole web password notification at the end of installaton process.  
But no big deal, second installation works.

> [@Fourdee](#):
>
> Can you confirm which device you are using,…

For me, NanoPi Neo, OrangePi One, Odroid C1 (sometimes).

---

<div class="post-metadata">

### Author: ![baz123](https://dietpi.com/forum/user_avatar/dietpi.com/baz123/32/2653_2.png) [@baz123](https://dietpi.com/forum/u/baz123)
#### Post date: [22 October 2017 11:25 UTC](https://dietpi.com/forum/t/pihole-installation-works-only-after-2-installs/1568/4 "2017-10-22T11:25:04Z")

</div>

Yes I see this as well. A fresh image, no webserver installed. OrangePi Zero

On first install, I didn’t see a message asking if I want to install the web interface so it is breaking about there.

2nd install seems to be fine.

---

<div class="post-metadata">

### Author: ![ripa](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@ripa](https://dietpi.com/forum/u/ripa)
#### Post date: [23 October 2017 17:25 UTC](https://dietpi.com/forum/t/pihole-installation-works-only-after-2-installs/1568/5 "2017-10-23T17:25:47Z")

</div>

NanoPi Neo

If its not using your repo: Is there no difference between diet-pi autoinstall and “curl -sSL [https://install.pi-hole.net](https://install.pi-hole.net) | bash”? No optimizations needed/possible?
