More of the debug results from above thread....
~$ sudo apt-get --yes --no-install-recommends install dialog dhcpcd5
Reading package lists... Done
Building dependency tree
Reading state information... Done
dhcpcd5 is already the newest version (6.10.1-1).
dialog is already the newest version (1.3-20160209-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.9G 0 2.9G 0% /dev
tmpfs 588M 8.7M 580M 2% /run
/dev/sda2 911G 12G 853G 2% /
tmpfs 2.9G 54M 2.9G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
/dev/sda1 511M 4.7M 507M 1% /boot/efi
tmpfs 588M 0 588M 0% /run/user/999
tmpfs 588M 48K 588M 1% /run/user/1000
/home/sean/.Private 911G 12G 853G 2% /home/sean
/dev/sr0 187M 187M 0 100% /media/sean/
~$ sudo bash -x /etc/.pihole/automated\ install/basic-install.sh
+ set -e
+ installLogLoc=/etc/pihole/install.log
+ setupVars=/etc/pihole/setupVars.conf
+ lighttpdConfig=/etc/lighttpd/lighttpd.conf
+ coltable=/opt/pihole/COL_TABLE
+ 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
+ PI_HOLE_CONFIG_DIR=/etc/pihole
+ useUpdateVars=false
+ adlistFile=/etc/pihole/adlists.list
+ regexFile=/etc/pihole/regex.list
+ IPV4_ADDRESS=
+ IPV6_ADDRESS=
+ QUERY_LOGGING=true
+ INSTALL_WEB_INTERFACE=true
+ '[' -z root ']'
++ stty size
+ 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
+ INSTALL_WEB_SERVER=true
+ [[ -f /opt/pihole/COL_TABLE ]]
+ source /opt/pihole/COL_TABLE
++ [[ -t 1 ]]
+++ tput colors
++ [[ 256 -ge 8 ]]
++ COL_BOLD=''
++ COL_ULINE=''
++ COL_NC=''
++ COL_GRAY=''
++ COL_RED=''
++ COL_GREEN=''
++ COL_YELLOW=''
++ COL_BLUE=''
++ COL_PURPLE=''
++ COL_CYAN=''
++ COL_WHITE=''
++ COL_BLACK=''
++ COL_LIGHT_BLUE=''
++ COL_LIGHT_GREEN=''
++ COL_LIGHT_CYAN=''
++ COL_LIGHT_RED=''
++ COL_URG_RED=''
++ COL_LIGHT_PURPLE=''
++ COL_BROWN=''
++ COL_LIGHT_GRAY=''
++ COL_DARK_GRAY=''
++ TICK='[✓]'
++ CROSS='[✗]'
++ INFO='[i]'
++ QST='[?]'
++ DONE=' done!'
++ OVER='\r'
+ counter=0
+ [[ '' != true ]]
+ main
+ local 'str=Root user check'
+ echo ''
+ [[ 0 -eq 0 ]]
+ echo -e ' [✓] Root user check'
[✓] Root user check
+ show_ascii_berry
+ echo -e '
.;;,.
.ccccc:,.
:cccclll:. ..,,
:ccccclll. ;ooodc
'\''ccll:;ll .oooodc
.;cll.;;looo:.
.. '\'','\''.
.'\'',,,,,,'\''.
.'\'',,,,,,,,,,.
.'\'',,,,,,,,,,,,....
....'\'''\'''\'',,,,,,,'\''.......
......... .... .........
.......... ..........
.......... ..........
......... .... .........
........,,,,,,,'\''......
....'\'',,,,,,,,,,,,.
.'\'',,,,,,,,,'\''.
.'\'',,,,,,'\''.
..'\'''\'''\''.
'
.;;,.
.ccccc:,.
:cccclll:. ..,,
:ccccclll. ;ooodc
'ccll:;ll .oooodc
.;cll.;;looo:.
.. ','.
.',,,,,,'.
.',,,,,,,,,,.
.',,,,,,,,,,,,....
....''',,,,,,,'.......
......... .... .........
.......... ..........
.......... ..........
......... .... .........
........,,,,,,,'......
....',,,,,,,,,,,,.
.',,,,,,,,,'.
.',,,,,,'.
..'''.
+ make_temporary_log
++ mktemp /tmp/pihole_temp.XXXXXX
+ TEMPLOG=/tmp/pihole_temp.FCgz84
+ exec
+ rm /tmp/pihole_temp.FCgz84
+ distro_check
+ command -v apt-get
+ PKG_MANAGER=apt-get
+ UPDATE_PKG_CACHE='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
+ command -v php
++ php -v
++ head -n1
++ grep -Po '(?<=PHP )[^ ]+'
+ phpInsVersion=7.0.30-0ubuntu0.16.04.1
+ echo -e ' [i] Existing PHP installation detected : PHP version 7.0.30-0ubuntu0.16.04.1'
[i] Existing PHP installation detected : PHP version 7.0.30-0ubuntu0.16.04.1
++ echo 7.0.30-0ubuntu0.16.04.1
++ cut -d. -f1
+ phpInsMajor=7
++ echo 7.0.30-0ubuntu0.16.04.1
++ cut -d. -f2
+ phpInsMinor=0
++ echo '7.0 < 7.0'
++ bc
+ '[' 0 == 0 ']'
+ phpInsNewer=true
+ [[ true != true ]]
+ phpVer=php7.0
+ apt-get install --dry-run php7.0-sqlite3
+ phpSqlite=sqlite3
+ INSTALLER_DEPS=(apt-utils dialog debconf dhcpcd5 git ${iproute_pkg} whiptail)
+ PIHOLE_DEPS=(bc cron curl dnsutils iputils-ping lsof netcat psmisc sudo unzip wget idn2 sqlite3 libcap2-bin dns-root-data resolvconf)
+ PIHOLE_WEB_DEPS=(lighttpd ${phpVer}-common ${phpVer}-cgi ${phpVer}-${phpSqlite})
+ LIGHTTPD_USER=www-data
+ LIGHTTPD_GROUP=www-data
+ LIGHTTPD_CFG=lighttpd.conf.debian
+ [[ -f /etc/pihole/setupVars.conf ]]
+ [[ false == true ]]
+ update_dialogs
+ [[ false = true ]]
+ opt1a=Update
+ opt1b='This will retain existing settings.'
+ strAdd='You will be updated to the latest version.'
+ opt2a=Reconfigure
+ opt2b='This will reset your Pi-hole and allow you to enter new settings.'
++ whiptail --title 'Existing Install Detected!' --menu '\n\nWe have detected an existing install.\n\nPlease choose from the following options: \n(You will be updated to the latest version.)' 20 70 2 Update 'This will retain existing settings.' Reconfigure 'This will reset your Pi-hole and allow you to enter new settings.'
+ UpdateCmd=Update
+ case ${UpdateCmd} in
+ echo -e ' [i] Update option selected'
[i] Update option selected
+ useUpdateVars=true
+ [[ false == true ]]
+ verifyFreeDiskSpace
+ local 'str=Disk space check'
+ local required_free_kilobytes=51200
+ local existing_free_kilobytes
++ df -Pk
++ grep -m1 '\/$'
++ awk '{print $4}'
+ existing_free_kilobytes=894434708
+ [[ 894434708 =~ ^([0-9])+$ ]]
+ [[ 894434708 -lt 51200 ]]
+ echo -e ' [✓] Disk space check'
[✓] Disk space check
+ update_package_cache
+ local 'str=Update local cache of available packages'
+ echo ''
+ echo -ne ' [i] Update local cache of available packages...'
[i] Update local cache of available packages...+ eval 'apt-get update'
+ echo -e '\r [✗] Update local cache of available packages'
[✗] Update local cache of available packages
+ echo -ne ' Error: Unable to update package cache. Please try "apt-get update"'
Error: Unable to update package cache. Please try "apt-get update"+ return 1
+ exit 1