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