Unable to clean install 5.0 release on Raspberry Pi 3 Model B v1.2

Problem with Beta 5.0:
I am unable to successfully clean-install the beta on my Raspberry Pi 3 Model B v1.2. This is a clean install of Raspbian Buster Lite (2019-09-26-raspbian-buster-lite.zip) on a fresh SD card. I'm connecting my Pi via Ethernet to my router, and ssh-ing into the Pi on my laptop.

After imaging my SD card, I added a /boot/ssh file to the Pi and powered it on.

Then I ran the following to update and install git:

sudo apt update && sudo apt upgrade -y
sudo apt install git -y

I cloned the repository and checked out the release/5.0 branch:

git clone https://github.com/pi-hole/pi-hole
cd pi-hole/
git checkout release/v5.0

I then set my locales, and selected en_US.UTF-8:

sudo dpkg-reconfigure locales

Then I attempted to install:

cd automated\ install/
sudo bash basic-install.sh

I select defaults for everything, except:

  1. eth0 as the interface
  2. Cloudflare as my upstream DNS provider

However, the install fails partway through, and my ssh connection is then dropped:


  [βœ“] 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
      Kernel update detected. If the install fails, please reboot and try again
  [i] Installer Dependency checks...
  [βœ“] Checking for dhcpcd5
  [βœ“] Checking for git
  [βœ“] Checking for iproute2
  [βœ“] Checking for whiptail

  [i] SELinux not detected
  [i] Using interface: eth0
  [i] Using upstream DNS: Cloudflare (1.1.1.1, 1.0.0.1)
  [βœ“] Set IP address to 192.168.1.112
  [i] You may need to restart after the install is complete
  [i] Unable to find IPv6 ULA/GUA address, IPv6 adblocking will not be enabled
  [i] IPv4 address: 192.168.1.112/24
  [i] IPv6 address:
  [i] Web Interface On
  [i] Web Server On
  [i] Logging On.
  [βœ—] Check for existing repository in /etc/.pihole
  [i] Clone https://github.com/pi-hole/pi-hole.git into /etc/.pihole...HEAD is now at e41c4b5 Merge pull request #2881 from pi-hole/release/v4.3.2
  [βœ“] Clone https://github.com/pi-hole/pi-hole.git into /etc/.pihole

  [βœ—] Check for existing repository in /var/www/html/admin
  [i] Clone https://github.com/pi-hole/AdminLTE.git into /var/www/html/admin...HEAD is now at 38d8e77 Merge pull request #1003 from pi-hole/release/v4.3.2
  [βœ“] Clone https://github.com/pi-hole/AdminLTE.git 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)
  [i] Checking for php-xml (will be installed)
  [i] Checking for php-intl (will be installed)
  [i] Processing apt-get install(s) for: dnsutils lsof netcat idn2 sqlite3 dns-root-data resolvconf lighttpd php-common php-cgi php-sqlite3 php-xml php-intl, please wait...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libfam0 libirs161 libsodium23 libxslt1.1 php7.3-cgi php7.3-cli php7.3-common php7.3-intl php7.3-json php7.3-opcache php7.3-readline php7.3-sqlite3 php7.3-xml
Suggested packages:
  rblcheck fam rrdtool apache2-utils lighttpd-doc php-pear sqlite3-doc
Recommended packages:
  lighttpd-modules-ldap lighttpd-modules-mysql spawn-fcgi
The following packages will be REMOVED:
  openresolv
The following NEW packages will be installed:
  dns-root-data dnsutils idn2 libfam0 libirs161 libsodium23 libxslt1.1 lighttpd lsof netcat php-cgi php-common php-intl php-sqlite3 php-xml php7.3-cgi php7.3-cli php7.3-common
  php7.3-intl php7.3-json php7.3-opcache php7.3-readline php7.3-sqlite3 php7.3-xml resolvconf sqlite3
0 upgraded, 26 newly installed, 1 to remove and 0 not upgraded.
Need to get 5,700 kB of archives.
After this operation, 23.6 MB of additional disk space will be used.
Get:1 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf libirs161 armhf 1:9.11.5.P4+dfsg-5.1 [235 kB]
Get:2 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf dnsutils armhf 1:9.11.5.P4+dfsg-5.1 [361 kB]
Get:3 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf lsof armhf 4.91+dfsg-1 [307 kB]
Get:4 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf dns-root-data all 2019031302 [5,396 B]
Get:5 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf idn2 armhf 2.0.5-1+deb10u1 [36.4 kB]
Get:6 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf libfam0 armhf 2.7.0-17.3 [24.6 kB]
Get:7 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf libsodium23 armhf 1.0.17-1 [139 kB]
Get:8 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf libxslt1.1 armhf 1.1.32-2.2~deb10u1 [215 kB]
Get:9 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf lighttpd armhf 1.4.53-4 [292 kB]
Get:10 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php-common all 2:69 [15.0 kB]
Get:11 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php7.3-common armhf 7.3.11-1~deb10u1 [518 kB]
Get:12 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php7.3-json armhf 7.3.11-1~deb10u1 [16.2 kB]
Get:13 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php7.3-opcache armhf 7.3.11-1~deb10u1 [154 kB]
Get:14 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php7.3-readline armhf 7.3.11-1~deb10u1 [10.7 kB]
Get:15 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php7.3-cli armhf 7.3.11-1~deb10u1 [1,124 kB]
Get:16 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php7.3-cgi armhf 7.3.11-1~deb10u1 [1,091 kB]
Get:17 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php-cgi all 2:7.3+69 [6,136 B]
Get:18 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php7.3-intl armhf 7.3.11-1~deb10u1 [105 kB]
Get:19 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php-intl all 2:7.3+69 [5,996 B]
Get:20 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php7.3-sqlite3 armhf 7.3.11-1~deb10u1 [20.5 kB]
Get:21 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php-sqlite3 all 2:7.3+69 [5,996 B]
Get:22 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php7.3-xml armhf 7.3.11-1~deb10u1 [85.2 kB]
Get:23 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf php-xml all 2:7.3+69 [6,012 B]
Get:24 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf resolvconf all 1.79 [74.2 kB]
Get:25 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf sqlite3 armhf 3.27.2-3 [839 kB]
Get:26 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf netcat all 1.10-41.1 [9,034 B]
Fetched 5,700 kB in 13s (436 kB/s)
Preconfiguring packages ...
(Reading database ... 40960 files and directories currently installed.)
Removing openresolv (3.8.0-1) ...
Selecting previously unselected package libirs161:armhf.
(Reading database ... 40946 files and directories currently installed.)
Preparing to unpack .../00-libirs161_1%3a9.11.5.P4+dfsg-5.1_armhf.deb ...
Unpacking libirs161:armhf (1:9.11.5.P4+dfsg-5.1) ...
Selecting previously unselected package dnsutils.
Preparing to unpack .../01-dnsutils_1%3a9.11.5.P4+dfsg-5.1_armhf.deb ...
Unpacking dnsutils (1:9.11.5.P4+dfsg-5.1) ...
Selecting previously unselected package lsof.
Preparing to unpack .../02-lsof_4.91+dfsg-1_armhf.deb ...
Unpacking lsof (4.91+dfsg-1) ...
Selecting previously unselected package dns-root-data.
Preparing to unpack .../03-dns-root-data_2019031302_all.deb ...
Unpacking dns-root-data (2019031302) ...
Selecting previously unselected package idn2.
Preparing to unpack .../04-idn2_2.0.5-1+deb10u1_armhf.deb ...
Unpacking idn2 (2.0.5-1+deb10u1) ...
Selecting previously unselected package libfam0:armhf.
Preparing to unpack .../05-libfam0_2.7.0-17.3_armhf.deb ...
Unpacking libfam0:armhf (2.7.0-17.3) ...
Selecting previously unselected package libsodium23:armhf.
Preparing to unpack .../06-libsodium23_1.0.17-1_armhf.deb ...
Unpacking libsodium23:armhf (1.0.17-1) ...
Selecting previously unselected package libxslt1.1:armhf.
Preparing to unpack .../07-libxslt1.1_1.1.32-2.2~deb10u1_armhf.deb ...
Unpacking libxslt1.1:armhf (1.1.32-2.2~deb10u1) ...
Selecting previously unselected package lighttpd.
Preparing to unpack .../08-lighttpd_1.4.53-4_armhf.deb ...
Unpacking lighttpd (1.4.53-4) ...
Selecting previously unselected package php-common.
Preparing to unpack .../09-php-common_2%3a69_all.deb ...
Unpacking php-common (2:69) ...
Selecting previously unselected package php7.3-common.
Preparing to unpack .../10-php7.3-common_7.3.11-1~deb10u1_armhf.deb ...
Unpacking php7.3-common (7.3.11-1~deb10u1) ...
Selecting previously unselected package php7.3-json.
Preparing to unpack .../11-php7.3-json_7.3.11-1~deb10u1_armhf.deb ...
Unpacking php7.3-json (7.3.11-1~deb10u1) ...
Selecting previously unselected package php7.3-opcache.
Preparing to unpack .../12-php7.3-opcache_7.3.11-1~deb10u1_armhf.deb ...
Unpacking php7.3-opcache (7.3.11-1~deb10u1) ...
Selecting previously unselected package php7.3-readline.
Preparing to unpack .../13-php7.3-readline_7.3.11-1~deb10u1_armhf.deb ...
Unpacking php7.3-readline (7.3.11-1~deb10u1) ...
Selecting previously unselected package php7.3-cli.
Preparing to unpack .../14-php7.3-cli_7.3.11-1~deb10u1_armhf.deb ...
Unpacking php7.3-cli (7.3.11-1~deb10u1) ...
Selecting previously unselected package php7.3-cgi.
Preparing to unpack .../15-php7.3-cgi_7.3.11-1~deb10u1_armhf.deb ...
Unpacking php7.3-cgi (7.3.11-1~deb10u1) ...
Selecting previously unselected package php-cgi.
Preparing to unpack .../16-php-cgi_2%3a7.3+69_all.deb ...
Unpacking php-cgi (2:7.3+69) ...
Selecting previously unselected package php7.3-intl.
Preparing to unpack .../17-php7.3-intl_7.3.11-1~deb10u1_armhf.deb ...
Unpacking php7.3-intl (7.3.11-1~deb10u1) ...
Selecting previously unselected package php-intl.
Preparing to unpack .../18-php-intl_2%3a7.3+69_all.deb ...
Unpacking php-intl (2:7.3+69) ...
Selecting previously unselected package php7.3-sqlite3.
Preparing to unpack .../19-php7.3-sqlite3_7.3.11-1~deb10u1_armhf.deb ...
Unpacking php7.3-sqlite3 (7.3.11-1~deb10u1) ...
Selecting previously unselected package php-sqlite3.
Preparing to unpack .../20-php-sqlite3_2%3a7.3+69_all.deb ...
Unpacking php-sqlite3 (2:7.3+69) ...
Selecting previously unselected package php7.3-xml.
Preparing to unpack .../21-php7.3-xml_7.3.11-1~deb10u1_armhf.deb ...
Unpacking php7.3-xml (7.3.11-1~deb10u1) ...
Selecting previously unselected package php-xml.
Preparing to unpack .../22-php-xml_2%3a7.3+69_all.deb ...
Unpacking php-xml (2:7.3+69) ...
Selecting previously unselected package resolvconf.
Preparing to unpack .../23-resolvconf_1.79_all.deb ...
Unpacking resolvconf (1.79) ...
Selecting previously unselected package sqlite3.
Preparing to unpack .../24-sqlite3_3.27.2-3_armhf.deb ...
Unpacking sqlite3 (3.27.2-3) ...
Selecting previously unselected package netcat.
Preparing to unpack .../25-netcat_1.10-41.1_all.deb ...
Unpacking netcat (1.10-41.1) ...
Setting up idn2 (2.0.5-1+deb10u1) ...
Setting up php-common (2:69) ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer β†’ /lib/systemd/system/phpsessionclean.timer.
packet_write_wait: Connection to 192.168.1.112 port 22: Broken pipe

After ssh-ing in again, I tried running the install script, but it failed:

  [βœ“] Check for existing repository in /var/www/html/admin
  [i] Update repo in /var/www/html/admin...
  : Could not update local repository. Contact support.

So I wiped /var/www/html/admin and tried again:

sudo rm -rf /var/www/html/admin

This also failed:

  [βœ“] 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 dhcpcd5
  [βœ“] Checking for git
  [βœ“] Checking for iproute2
  [βœ“] Checking for whiptail

  [i] SELinux not detected
  [i] Using interface: eth0
  [i] Using upstream DNS: Cloudflare (1.1.1.1, 1.0.0.1)
  [i] Static IP already configured
  [i] Unable to find IPv6 ULA/GUA address, IPv6 adblocking will not be enabled
  [i] IPv4 address: 192.168.1.112/24
  [i] IPv6 address:
  [i] Web Interface On
  [i] Web Server On
  [i] Logging On.
  [βœ“] Check for existing repository in /etc/.pihole
  [i] Update repo in /etc/.pihole...HEAD is now at e41c4b5 Merge pull request #2881 from pi-hole/release/v4.3.2
  [βœ“] Update repo in /etc/.pihole

  [βœ—] Check for existing repository in /var/www/html/admin
  [i] Clone https://github.com/pi-hole/AdminLTE.git into /var/www/html/admin...HEAD is now at 38d8e77 Merge pull request #1003 from pi-hole/release/v4.3.2
  [βœ“] Clone https://github.com/pi-hole/AdminLTE.git 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
  [βœ“] Checking for idn2
  [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)
  [i] Checking for php-xml (will be installed)
  [i] Checking for php-intl (will be installed)
  [i] Processing apt-get install(s) for: dnsutils lsof netcat sqlite3 dns-root-data resolvconf lighttpd php-common php-cgi php-sqlite3 php-xml php-intl, please wait...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

So then I ran sudo dpkg --configure -a to fix the broken install.

Setting up php-common (2:69) ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer β†’ /lib/systemd/system/phpsessionclean.timer.
Setting up libsodium23:armhf (1.0.17-1) ...
Setting up netcat (1.10-41.1) ...
Setting up resolvconf (1.79) ...
Installing new version of config file /etc/dhcp/dhclient-enter-hooks.d/resolvconf ...
Installing new version of config file /etc/network/if-down.d/resolvconf ...
Installing new version of config file /etc/network/if-up.d/000resolvconf ...
Installing new version of config file /etc/ppp/ip-down.d/000resolvconf ...
Installing new version of config file /etc/ppp/ip-up.d/000resolvconf ...
Created symlink /etc/systemd/system/sysinit.target.wants/resolvconf.service β†’ /lib/systemd/system/resolvconf.service.
Setting up libirs161:armhf (1:9.11.5.P4+dfsg-5.1) ...
Setting up dnsutils (1:9.11.5.P4+dfsg-5.1) ...
Setting up dns-root-data (2019031302) ...
Setting up php7.3-common (7.3.11-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/calendar.ini with new version

Creating config file /etc/php/7.3/mods-available/ctype.ini with new version

Creating config file /etc/php/7.3/mods-available/exif.ini with new version

Creating config file /etc/php/7.3/mods-available/fileinfo.ini with new version

Creating config file /etc/php/7.3/mods-available/ftp.ini with new version

Creating config file /etc/php/7.3/mods-available/gettext.ini with new version

Creating config file /etc/php/7.3/mods-available/iconv.ini with new version

Creating config file /etc/php/7.3/mods-available/pdo.ini with new version

Creating config file /etc/php/7.3/mods-available/phar.ini with new version

Creating config file /etc/php/7.3/mods-available/posix.ini with new version

Creating config file /etc/php/7.3/mods-available/shmop.ini with new version

Creating config file /etc/php/7.3/mods-available/sockets.ini with new version

Creating config file /etc/php/7.3/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/7.3/mods-available/sysvsem.ini with new version

Creating config file /etc/php/7.3/mods-available/sysvshm.ini with new version

Creating config file /etc/php/7.3/mods-available/tokenizer.ini with new version
Setting up php7.3-intl (7.3.11-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/intl.ini with new version
Setting up lsof (4.91+dfsg-1) ...
Setting up libfam0:armhf (2.7.0-17.3) ...
Setting up php7.3-opcache (7.3.11-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/opcache.ini with new version
Setting up libxslt1.1:armhf (1.1.32-2.2~deb10u1) ...
Setting up sqlite3 (3.27.2-3) ...
Setting up lighttpd (1.4.53-4) ...
Created symlink /etc/systemd/system/multi-user.target.wants/lighttpd.service β†’ /lib/systemd/system/lighttpd.service.
Setting up php7.3-sqlite3 (7.3.11-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/sqlite3.ini with new version

Creating config file /etc/php/7.3/mods-available/pdo_sqlite.ini with new version
Setting up php7.3-json (7.3.11-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/json.ini with new version
Setting up php7.3-readline (7.3.11-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/readline.ini with new version
Setting up php-sqlite3 (2:7.3+69) ...
Setting up php-intl (2:7.3+69) ...
Setting up php7.3-xml (7.3.11-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/dom.ini with new version

Creating config file /etc/php/7.3/mods-available/simplexml.ini with new version

Creating config file /etc/php/7.3/mods-available/wddx.ini with new version

Creating config file /etc/php/7.3/mods-available/xml.ini with new version

Creating config file /etc/php/7.3/mods-available/xmlreader.ini with new version

Creating config file /etc/php/7.3/mods-available/xmlwriter.ini with new version

Creating config file /etc/php/7.3/mods-available/xsl.ini with new version
Setting up php7.3-cli (7.3.11-1~deb10u1) ...
update-alternatives: using /usr/bin/php7.3 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar7.3 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar7.3 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/7.3/cli/php.ini with new version
Setting up php7.3-cgi (7.3.11-1~deb10u1) ...
update-alternatives: using /usr/bin/php-cgi7.3 to provide /usr/bin/php-cgi (php-cgi) in auto mode
update-alternatives: using /usr/lib/cgi-bin/php7.3 to provide /usr/lib/cgi-bin/php (php-cgi-bin) in auto mode

Creating config file /etc/php/7.3/cgi/php.ini with new version
Setting up php-xml (2:7.3+69) ...
Setting up php-cgi (2:7.3+69) ...
Processing triggers for systemd (241-7~deb10u2+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for resolvconf (1.79) ...

Then I tried running the script again, hoping third time was the charm.

It wasn't.

Once it got to the "restarting lighttpd message", the installation failed and my ssh connection was dropped again:

  [βœ“] Root user check

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

  [i] Existing PHP installation detected : PHP version 7.3.11-1~deb10u1
  [βœ“] Disk space check
  [βœ“] Update local cache of available packages

  [βœ“] Checking apt-get for upgraded packages... up to date!

  [i] Installer Dependency checks...
  [βœ“] Checking for dhcpcd5
  [βœ“] Checking for git
  [βœ“] Checking for iproute2
  [βœ“] Checking for whiptail

  [i] SELinux not detected
  [i] Using interface: eth0
  [i] Using upstream DNS: Cloudflare (1.1.1.1, 1.0.0.1)
  [i] Static IP already configured
  [i] Unable to find IPv6 ULA/GUA address, IPv6 adblocking will not be enabled
  [i] IPv4 address: 192.168.1.112/24
  [i] IPv6 address:
  [i] Web Interface On
  [i] Web Server On
  [i] Logging On.
  [βœ“] Check for existing repository in /etc/.pihole
  [i] Update repo in /etc/.pihole...HEAD is now at e41c4b5 Merge pull request #2881 from pi-hole/release/v4.3.2
  [βœ“] Update repo in /etc/.pihole

  [βœ“] Check for existing repository in /var/www/html/admin
  [i] Update repo in /var/www/html/admin...HEAD is now at 38d8e77 Merge pull request #1003 from pi-hole/release/v4.3.2
  [βœ“] Update repo in /var/www/html/admin

  [i] Main Dependency checks...
  [βœ“] Checking for cron
  [βœ“] Checking for curl
  [βœ“] Checking for dnsutils
  [βœ“] Checking for iputils-ping
  [βœ“] Checking for lsof
  [βœ“] Checking for netcat
  [βœ“] Checking for psmisc
  [βœ“] Checking for sudo
  [βœ“] Checking for unzip
  [βœ“] Checking for wget
  [βœ“] Checking for idn2
  [βœ“] Checking for sqlite3
  [βœ“] Checking for libcap2-bin
  [βœ“] Checking for dns-root-data
  [βœ“] Checking for resolvconf
  [βœ“] Checking for libcap2
  [βœ“] Checking for lighttpd
  [βœ“] Checking for php7.3-common
  [βœ“] Checking for php7.3-cgi
  [βœ“] Checking for php7.3-sqlite3
  [βœ“] Checking for php7.3-xml
  [βœ“] Checking for php7.3-intl

  [βœ“] Enabling lighttpd service to start on reboot...
  [βœ“] Creating user 'pihole'

  [i] FTL Checks...

  [βœ“] Detected ARM-hf architecture (armv7+)
  [i] Checking for existing FTL binary...
  [βœ“] Downloading and Installing FTL
  [βœ“] Installing scripts from /etc/.pihole

  [i] Installing configs from /etc/.pihole...
  [βœ“] No dnsmasq.conf found... restoring default dnsmasq.conf...
  [βœ“] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf

  [i] Installing blocking page...
  [βœ“] Creating directory for blocking page, and copying files
  [i] Backing up index.lighttpd.html
      No default index.lighttpd.html file found... not backing up

  [βœ“] Installing sudoer file

  [βœ“] Installing latest Cron script

  [βœ“] Installing latest logrotate script
  [i] Backing up /etc/dnsmasq.conf to /etc/dnsmasq.conf.old

  [i] Skipping firewall configuration
  [βœ“] man pages installed and database updated
  [i] Testing if systemd-resolved is enabled
  [i] Systemd-resolved is not enabled
  [βœ“] Restarting lighttpd service...
  [i] Enabling lighttpd service to start on reboot...packet_write_wait: Connection to 192.168.1.112 port 22: Broken pipe

At this point, after logging in again, pihole and pihole-FTL are available in my PATH, but starting the service fails.

pi@raspberrypi:~ $ sudo service pihole-FTL start
Job for pihole-FTL.service failed because the control process exited with error code.
See "systemctl status pihole-FTL.service" and "journalctl -xe" for details.
pi@raspberrypi:~ $ systemctl status pihole-FTL.service
● pihole-FTL.service
   Loaded: loaded (/etc/init.d/pihole-FTL; generated)
   Active: failed (Result: exit-code) since Sun 2020-02-02 08:02:08 GMT; 2s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 677 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=203/EXEC)

Feb 02 08:02:08 raspberrypi systemd[1]: Starting pihole-FTL.service...
Feb 02 08:02:08 raspberrypi systemd[677]: pihole-FTL.service: Failed to execute command: Exec format error
Feb 02 08:02:08 raspberrypi systemd[677]: pihole-FTL.service: Failed at step EXEC spawning /etc/init.d/pihole-FTL: Exec format error
Feb 02 08:02:08 raspberrypi systemd[1]: pihole-FTL.service: Control process exited, code=exited, status=203/EXEC
Feb 02 08:02:08 raspberrypi systemd[1]: pihole-FTL.service: Failed with result 'exit-code'.
Feb 02 08:02:08 raspberrypi systemd[1]: Failed to start pihole-FTL.service.

At this point, I decided I had enough for the day and posted this.

Is this some weirdness with the fact that I'm installing over ssh? The website says Pi-Hole supports Raspbian Buster, but I would assume it shouldn't be this involved to install.

Debug Token:
N/A. Running pihole -d doesn't output anything, and pihole -r doesn't seem to do anything either.

You cant do a clean 5.0 beta install.

Yes you can.

I have this problem ('ssh' connection dropped) on one of my computers. Whenever I want to use it on that particular computer, I first run 'screen' (sudo apt-get -y install screen). First run 'screen', than run your script In that screen. I the 'ssh' connection drops, for whatever reason, just reconnect to the device an type 'screen -r' (Reattach to Screen). you will see the script continued running. To disconnect from a screen, with the option to recall it later, press β€œCtrl-a” β€œd” (Detaching From Screen). to exit a screen, enter 'exit'.

Would you be so kind to explain how, in detail? Or are the instructions from DL6ER, in the post you referred the correct instructions, nothing additional to do? Thanks.

which program / app do you use for ssh?
Operating system ?

putty / Raspbian buster

putty on windows 10 ?
or true winscp?

Yes that will work
The later for file transfers

if i use ssh true winscp i get disconnect to.
i just use putty and have no problem any more.

yes. I have absolutely no problems with putty on windows 10. It's a windows 7 machine with putty that has a problem. I assume it's the OS, that has a problem, I also couldn't use the machine to browse. Now it's disconnected from the internet (support ended), I use it only to run apps that simply don't work on windows 10 (or I haven't got a recent license for the windows 10 version).

I am able to use both without issue on Windows 10. It may be a networking issue.

I use also windows 7.
Else you can try.
sudo apt-get -y install xrdp
and then use remote desktop connection from windows

The topic is about a beta5 install on buster, you haven't answered the question about the installation procedure.

sudo mkdir /etc/pihole/
echo "release/v5.0" | sudo tee /etc/pihole/ftlbranch

sudo mkdir -p /var/www/html/admin
cd /var/www/html/admin
sudo git clone https://github.com/pi-hole/AdminLTE.git .
sudo git checkout release/v5.0

sudo mkdir -p /etc/.pihole
cd /etc/.pihole
sudo git clone https://github.com/pi-hole/pi-hole.git .
sudo git checkout release/v5.0

sudo ./automated\ install/basic-install.sh

Thats: However, this is untested. said that in hes post. @DL6ER

I'd say it's more unsupported; I think a number of people have used this method to install new, including myself several times. Not to say it will work for everyone I guess.

So I suspect the problem was unrelated to the beta, and actually was caused by my power supply. I noticed that anytime it started drawing more current, the Pi was browning out. Since at that point in the installation, services are being started, the power draw goes up. The micro-USB charger seems pretty suspect, since it's supposed to do up to 5A (I won't be using this for anything in the future)...

I swapped the micro-USB charger with another one I had lying around the house, and now things seem to be working correctly.

Sorry for the false alarm!

1 Like

How odd. Did the entire OS reset at that point, or just services failed to start? What did /var/log/syslog log at that time?