I need help to install

I googled for over an hour I don't know what is wrong, my install crashes after checking for whiptail.

See log:

  • set -e

  • tmpLog=/tmp/pihole-install.log

  • instalLogLoc=/etc/pihole/install.log

  • setupVars=/etc/pihole/setupVars.conf

  • lighttpdConfig=/etc/lighttpd/lighttpd.conf

  • webInterfaceGitUrl=https://github.com/pi-hole/AdminLTE.git

  • webInterfaceDir=/var/www/html/admin

  • piholeGitUrl=https://github.com/pi-hole/pi-hole.git

  • PI_HOLE_LOCAL_REPO=/etc/.pihole

  • PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage)

  • PI_HOLE_INSTALL_DIR=/opt/pihole

  • useUpdateVars=false

  • IPV4_ADDRESS=

  • IPV6_ADDRESS=

  • QUERY_LOGGING=true

  • INSTALL_WEB=true
    ++ stty size
    ++ echo 24 80

  • screen_size='24 80'
    ++ echo '24 80'
    ++ awk '{print $1}'

  • rows=24
    ++ echo '24 80'
    ++ awk '{print $2}'

  • columns=80

  • r=12

  • c=40

  • r=20

  • c=70

  • skipSpaceCheck=false

  • reconfigure=false

  • runUnattended=false

  • [[ '' != true ]]

  • main

  • show_ascii_berry

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

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

  • [[ 0 -eq 0 ]]

  • echo '::: You are root.'
    ::: You are root.

  • distro_check

  • command -v apt-get

  • PKG_MANAGER=apt-get

  • UPDATE_PKG_CACHE='test_dpkg_lock; apt-get update'

  • PKG_INSTALL=(${PKG_MANAGER} --yes --no-install-recommends install)

  • PKG_COUNT='apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst || true'

  • apt-get install --dry-run iproute2

  • iproute_pkg=iproute2

  • apt-get install --dry-run php

  • phpVer=php5

  • INSTALLER_DEPS=(apt-utils dialog debconf dhcpcd5 git ${iproute_pkg} whiptail)

  • PIHOLE_DEPS=(bc cron curl dnsmasq dnsutils iputils-ping lsof netcat sudo unzip wget)

  • PIHOLE_WEB_DEPS=(lighttpd ${phpVer}-common ${phpVer}-cgi)

  • LIGHTTPD_USER=www-data

  • LIGHTTPD_GROUP=www-data

  • LIGHTTPD_CFG=lighttpd.conf.debian

  • DNSMASQ_USER=dnsmasq

  • [[ -f /etc/pihole/setupVars.conf ]]

  • [[ false == true ]]

  • verifyFreeDiskSpace

  • echo '::: Verifying free disk space...'
    ::: Verifying free disk space...

  • local required_free_kilobytes=51200
    ++ df -Pk
    ++ grep -m1 '/$'
    ++ awk '{print $4}'

  • local existing_free_kilobytes=12389300

  • [[ 12389300 =~ ^([0-9])+$ ]]

  • [[ 12389300 -lt 51200 ]]

  • update_package_cache

  • echo :::
    :::

  • echo -n '::: Updating local cache of available packages...'
    ::: Updating local cache of available packages...+ eval 'test_dpkg_lock; apt-get update'

  • echo ' done!'
    done!

  • notify_package_updates_available

  • echo :::
    :::

  • echo -n '::: Checking apt-get for upgraded packages....'
    ::: Checking apt-get for upgraded packages....++ eval 'apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst || true'
    +++ apt-get -s -o Debug::NoLocking=true upgrade
    +++ grep -c '^Inst'
    +++ true

  • updatesToInstall=0

  • echo ' done!'
    done!

  • echo :::
    :::
    ++ uname -r

  • [[ -d /lib/modules/4.9.24-v7+ ]]

  • [[ 0 -eq 0 ]]

  • echo '::: Your system is up to date! Continuing with Pi-hole installation...'
    ::: Your system is up to date! Continuing with Pi-hole installation...

  • install_dependent_packages 'INSTALLER_DEPS[@]'

  • argArray1=("${!1}")

  • declare -a argArray1

  • declare -a installArray

  • command -v debconf-apt-progress

  • for i in '"${argArray1[@]}"'

  • echo -n '::: Checking for apt-utils...'
    ::: Checking for apt-utils...+ dpkg-query -W '-f=${Status}' apt-utils

  • grep 'ok installed'

  • echo ' installed!'
    installed!

  • for i in '"${argArray1[@]}"'

  • echo -n '::: Checking for dialog...'
    ::: Checking for dialog...+ dpkg-query -W '-f=${Status}' dialog

  • grep 'ok installed'

  • echo ' added to install list!'
    added to install list!

  • installArray+=("${i}")

  • for i in '"${argArray1[@]}"'

  • echo -n '::: Checking for debconf...'
    ::: Checking for debconf...+ dpkg-query -W '-f=${Status}' debconf

  • grep 'ok installed'

  • echo ' installed!'
    installed!

  • for i in '"${argArray1[@]}"'

  • echo -n '::: Checking for dhcpcd5...'
    ::: Checking for dhcpcd5...+ dpkg-query -W '-f=${Status}' dhcpcd5

  • grep 'ok installed'

  • echo ' installed!'
    installed!

  • for i in '"${argArray1[@]}"'

  • echo -n '::: Checking for git...'
    ::: Checking for git...+ dpkg-query -W '-f=${Status}' git

  • grep 'ok installed'

  • echo ' installed!'
    installed!

  • for i in '"${argArray1[@]}"'

  • echo -n '::: Checking for iproute2...'
    ::: Checking for iproute2...+ dpkg-query -W '-f=${Status}' iproute2

  • grep 'ok installed'

  • echo ' installed!'
    installed!

  • for i in '"${argArray1[@]}"'

  • echo -n '::: Checking for whiptail...'
    ::: Checking for whiptail...+ dpkg-query -W '-f=${Status}' whiptail

  • grep 'ok installed'

  • echo ' installed!'
    installed!

  • [[ 1 -gt 0 ]]

  • test_dpkg_lock

  • i=0

  • fuser /var/lib/dpkg/lock

  • return 0

  • debconf-apt-progress -- apt-get --yes --no-install-recommends install dialog

What is the output of sudo apt-get update?

Update:
Hit http://archive.raspberrypi.org jessie InRelease
Hit https://dev2day.de jessie InRelease
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit https://dev2day.de jessie/main armhf Packages
Get:1 https://dev2day.de jessie/main Translation-en_GB [323 B]
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Get:2 https://dev2day.de jessie/main Translation-en [320 B]
Get:3 https://dev2day.de jessie/main Translation-en_GB [323 B]
Get:4 https://dev2day.de jessie/main Translation-en [320 B]
Get:5 https://dev2day.de jessie/main Translation-en_GB [323 B]
Get:6 https://dev2day.de jessie/main Translation-en [320 B]
Get:7 https://dev2day.de jessie/main Translation-en_GB [323 B]
Get:8 https://dev2day.de jessie/main Translation-en [320 B]
Get:9 https://dev2day.de jessie/main Translation-en_GB [323 B]
Ign https://dev2day.de jessie/main Translation-en_GB
Get:10 https://dev2day.de jessie/main Translation-en [320 B]
Ign https://dev2day.de jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Reading package lists... Done

Upgrade:
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
gnustep-base-common gnustep-base-runtime gnustep-common libgnustep-base1.24
libobjc4 libwavpack1 libxslt1.1 unar
Use 'apt-get autoremove' to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

What is the output of sudo apt-get --yes --no-install-recommends install dialog

sudo apt-get --yes --no-install-recommends install dialog
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package dialog is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'dialog' has no installation candidate

It doesn't exist in the rasp repos. :wink:

What is the output of this command?

cat /etc/os-release

After running apt search dialog on my Pi Zero, I found that it does know of the dialog package:

dialog/stable 1.2-20140911-1 armhf
  Displays user-friendly dialog boxes from shell scripts

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="RaspbianForums - Raspbian"
BUG_REPORT_URL="RaspbianBugs - Raspbian"

I have a Rasp 3.
And I can't find it.

apt search dialog
Sorting... Done
Full Text Search... Done
gnome-panel-control/stable 3.5.2-8+rpi3 armhf
command line utility to invoke GNOME panel run dialog/menu

libreoffice-gtk/stable 1:4.3.3-2+rpi4 armhf
office productivity suite -- GTK+ integration

libreoffice-gtk3/stable 1:4.3.3-2+rpi4 armhf
office productivity suite -- GTK+ 3.0 integration

lxpanel/stable 0.7.2-1+rpi19 armhf
LXDE panel

pipanel/stable 20161206~130650 armhf
Settings panel for Raspberry Pi desktop appearance

whiptail/now 0.52.17-1 armhf [installed,local]
Displays user-friendly dialog boxes from shell scripts