Pi-hole Installation schlägt fehl

Hallo,

ich habe auf einem Raspberry Pi 3B+ ein aktuelles Raspian stretch frisch installiert und nach einem apt-get update/apt-get upgrade und anschließendem Reboot Pi-Hole installiert.

Lt. Installer hat auch alles geklappt, jedoch kann ich weder das Webinterface aufrufen noch funktioniert der Aufruf von "pihole -h" in der Konsole (Command not found).

Ich habe es nun schon drei mal versucht - immer das Image frisch auf die SD-Karte geflashed, apt-get update und upgrade, Reboot, Install-Kommando. Immer das gleiche.

Jemand eine Idee, wie ich das Problem beheben kann?
Danke!

Hier noch die Bash-History:

pi@raspberrypi:~ $ curl -sSL https://install.pi-hole.net | bash

[✗] Root user check
Script called with non-root privileges
The Pi-hole requires elevated privileges to install and run
Please check the installer for any concerns regarding this requirement
Make sure to download this script from a trusted source

[✓] Sudo utility check

[✓] Root user check

    .;;,.
    .ccccc:,.
     :cccclll:.      ..,,
      :ccccclll.   ;ooodc
       'ccll:;ll .oooodc
         .;cll.;;looo:.
             .. ','.
            .',,,,,,'.
          .',,,,,,,,,,.
        .',,,,,,,,,,,,....
      ....''',,,,,,,'.......
    .........  ....  .........
    ..........      ..........
    ..........      ..........
    .........  ....  .........
      ........,,,,,,,'......
        ....',,,,,,,,,,,,.
           .',,,,,,,,,'.
            .',,,,,,'.
              ..'''.

[✓] Disk space check

[✓] Update local cache of available packages

[✓] Checking apt-get for upgraded packages... up to date!

[i] Installer Dependency checks...
[✓] Checking for apt-utils
[i] Checking for dialog (will be installed)
[✓] Checking for debconf
[✓] Checking for dhcpcd5
[i] Checking for git (will be installed)
[✓] Checking for iproute2
[✓] Checking for whiptail

[✓] Stopping dnsmasq service...

[✓] Stopping lighttpd service...
[i] Using [✓] Set IP address to 192.168.178.58
You may need to restart after the install is complete
[i] Found IPv6 ULA address, using it for blocking IPv6 ads
[i] IPv4 address: 192.168.178.58/24
[i] IPv6 address: fd04:bd3:80e8:1:8038:46fd:53e8:4b09
[i] Web Interface On
[i] Logging On.
[✗] Check for existing repository in /etc/.pihole
[✓] Clone https://github.com/pi-hole/pi-hole.git into /etc/.pihole

[✗] Check for existing repository in /var/www/html/admin
[✓] Clone https://github.com/pi-hole/AdminLTE.git into /var/www/html/admin

[i] Main Dependency checks...
[i] Checking for bc (will be installed)
[✓] Checking for cron
[✓] Checking for curl
[i] Checking for dnsmasq (will be installed)
[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 sudo
[✓] Checking for unzip
[✓] Checking for wget
[i] Checking for idn2 (will be installed)
[i] Checking for sqlite3 (will be installed)
[i] Checking for lighttpd (will be installed)
[i] Checking for php5-common (will be installed)
[i] Checking for php5-cgi (will be installed)
[i] Checking for php5-sqlite (will be installed)
pi@raspberrypi:~ $ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Reading package lists... Done
pi@raspberrypi:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ sudo apt-get autoclear
E: Invalid operation autoclear
pi@raspberrypi:~ $ sudo shutdown -r now
Connection to raspberrypi closed by remote host.
Connection to raspberrypi closed.

$ ssh -l pi raspberrypi
pi@raspberrypi's password:
Linux raspberrypi 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Apr 8 13:00:12 2018 from 2003:ed:e3cc:8300:30e4:71c4:de7:b62f

Wi-Fi is disabled because the country is not set.
Use raspi-config to set the country before use.

pi@raspberrypi:~ $ hostname
raspberrypi
pi@raspberrypi:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.58 netmask 255.255.255.0 broadcast 192.168.178.255
inet6 fd04:bd3:80e8:1:8038:46fd:53e8:4b09 prefixlen 64 scopeid 0x0
inet6 2003:ed:e3cc:8300:e7f0:bec8:9876:1b41 prefixlen 64 scopeid 0x0
inet6 fe80::2bf0:703c:113:2af6 prefixlen 64 scopeid 0x20
ether b8:27:eb:52:55:cc txqueuelen 1000 (Ethernet)
RX packets 3475 bytes 342472 (334.4 KiB)
RX errors 0 dropped 154 overruns 0 frame 0
TX packets 130 bytes 20483 (20.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 800 bytes 64800 (63.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 800 bytes 64800 (63.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

pi@raspberrypi:~ $ pihole -h
-bash: pihole: command not found

Hol dir vor der Installation permanente Rootrechte

sudo -i

dann nochmal drüber installieren.

2 Likes

Da hätte ich ja auch selbst dran denken können - danke!

Vielleicht kann man den Installer so umbauen, das dieser ohne Root-Rechte gar nicht erst startet?

Danke für den Tipp. Hatte das gleiche Problem wie der TE. Zwar schlug die Installation nachdem ich Root-Rechte eingerichtet hatte fehl (es wurde nur die ersten Punkte gecheckt und eine Fehlermeldung angezeigt. Nach einem Neustart und ohne nochmals Root zu erteilen, lief die Installation durch. Diesmal wurden auch die fehlende Installation am Ende mit den 40x Paketen ausgeführt und ich konnte mich endlich am Pi-Hole anmelden.

Hallo,
habe das geleich Problem, pi-hole bleibt nach php5-sqlite stehen, obwohl ich mit wie beschrieben mit Rootrechte installiert habe. An was könnte es noch liegen.
Danke