No 404 errors after sudo apt update.
The full output :
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'
++ awk '{print $1}'
++ echo '24 80'
+ 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
++ [[ 8 -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.8QfKNo
+ exec
+ rm /tmp/pihole_temp.8QfKNo
+ 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
++ head -n1
++ grep -Po '(?<=PHP )[^ ]+'
++ php -v
+ phpInsVersion=7.0.30-0+deb9u1
+ echo -e ' [i] Existing PHP installation detected : PHP version 7.0.30-0+deb9u1'
[i] Existing PHP installation detected : PHP version 7.0.30-0+deb9u1
++ echo 7.0.30-0+deb9u1
++ cut -d. -f1
+ phpInsMajor=7
++ echo 7.0.30-0+deb9u1
++ 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=21014332
+ [[ 21014332 =~ ^([0-9])+$ ]]
+ [[ 21014332 -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
+ notify_package_updates_available
+ local 'str=Checking apt-get for upgraded packages'
+ echo -ne '\n [i] Checking apt-get for upgraded packages...'
[i] 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
++ uname -r
+ [[ -d /lib/modules/4.14.70-v7+ ]]
+ [[ 0 -eq 0 ]]
+ echo -e '\r [✓] Checking apt-get for upgraded packages... up to date!'
[✓] Checking apt-get for upgraded packages... up to date!
+ echo ''
+ install_dependent_packages 'INSTALLER_DEPS[@]'
+ counter=1
+ [[ 1 == 1 ]]
+ echo -e ' [i] Installer Dependency checks...'
[i] Installer Dependency checks...
+ argArray1=("${!1}")
+ declare -a argArray1
+ declare -a installArray
+ command -v debconf-apt-progress
+ for i in "${argArray1[@]}"
+ echo -ne ' [i] Checking for apt-utils...'
[i] Checking for apt-utils...+ dpkg-query -W '-f=${Status}' apt-utils
+ grep 'ok installed'
+ echo -e '\r [✓] Checking for apt-utils'
[✓] Checking for apt-utils
+ for i in "${argArray1[@]}"
+ echo -ne ' [i] Checking for dialog...'
[i] Checking for dialog...+ dpkg-query -W '-f=${Status}' dialog
+ grep 'ok installed'
+ echo -e '\r [✓] Checking for dialog'
[✓] Checking for dialog
+ for i in "${argArray1[@]}"
+ echo -ne ' [i] Checking for debconf...'
[i] Checking for debconf...+ dpkg-query -W '-f=${Status}' debconf
+ grep 'ok installed'
+ echo -e '\r [✓] Checking for debconf'
[✓] Checking for debconf
+ for i in "${argArray1[@]}"
+ echo -ne ' [i] Checking for dhcpcd5...'
[i] Checking for dhcpcd5...+ dpkg-query -W '-f=${Status}' dhcpcd5
+ grep 'ok installed'
+ echo -e '\r [✓] Checking for dhcpcd5'
[✓] Checking for dhcpcd5
+ for i in "${argArray1[@]}"
+ echo -ne ' [i] Checking for git...'
[i] Checking for git...+ dpkg-query -W '-f=${Status}' git
+ grep 'ok installed'
+ echo -e '\r [✓] Checking for git'
[✓] Checking for git
+ for i in "${argArray1[@]}"
+ echo -ne ' [i] Checking for iproute2...'
[i] Checking for iproute2...+ dpkg-query -W '-f=${Status}' iproute2
+ grep 'ok installed'
+ echo -e '\r [✓] Checking for iproute2'
[✓] Checking for iproute2
+ for i in "${argArray1[@]}"
+ echo -ne ' [i] Checking for whiptail...'
[i] Checking for whiptail...+ dpkg-query -W '-f=${Status}' whiptail
+ grep 'ok installed'
+ echo -e '\r [✓] Checking for whiptail'
[✓] Checking for whiptail
+ [[ 0 -gt 0 ]]
+ echo ''
+ return 0
+ checkSelinux
+ command -v getenforce
+ [[ true == false ]]
+ source /etc/pihole/setupVars.conf
++ PIHOLE_INTERFACE=wlan0
++ IPV4_ADDRESS=192.168.1.36/24
++ IPV6_ADDRESS=2a01:cb05:85f6:d000:4316:a822:e5d5:1f8b
++ PIHOLE_DNS_1=8.8.8.8
++ PIHOLE_DNS_2=8.8.4.4
++ QUERY_LOGGING=true
++ INSTALL_WEB=true
++ LIGHTTPD_ENABLED=1
++ WEBPASSWORD=c3b1672f2b22138130c44334dff0b3ca09e83b952c0e01561112bb5c0d4d6d06
+ clone_or_update_repos
+ [[ false == true ]]
+ getGitFiles /etc/.pihole https://github.com/pi-hole/pi-hole.git
+ local directory=/etc/.pihole
+ local remoteRepo=https://github.com/pi-hole/pi-hole.git
+ local 'str=Check for existing repository in /etc/.pihole'
+ echo -ne ' [i] Check for existing repository in /etc/.pihole...'
[i] Check for existing repository in /etc/.pihole...+ is_repo /etc/.pihole
+ local directory=/etc/.pihole
+ local curdir
+ local rc
+ curdir=/home/pi
+ [[ -d /etc/.pihole ]]
+ cd /etc/.pihole
+ git status --short
+ cd /home/pi
+ return 0
+ echo -e '\r [✓] Check for existing repository in /etc/.pihole'
[✓] Check for existing repository in /etc/.pihole
+ update_repo /etc/.pihole
+ local directory=/etc/.pihole
+ local curdir
+ local 'str=Update repo in /etc/.pihole'
+ curdir=/home/pi
+ cd /etc/.pihole
+ echo -ne ' [i] Update repo in /etc/.pihole...'
[i] Update repo in /etc/.pihole...+ git stash --all --quiet
+ git clean --quiet --force -d
+ git pull --quiet
+ echo -e '\r [✓] Update repo in /etc/.pihole'
[✓] Update repo in /etc/.pihole
+ cd /home/pi
+ return 0
+ echo ''
+ return 0
+ [[ true == true ]]
+ getGitFiles /var/www/html/admin https://github.com/pi-hole/AdminLTE.git
+ local directory=/var/www/html/admin
+ local remoteRepo=https://github.com/pi-hole/AdminLTE.git
+ local 'str=Check for existing repository in /var/www/html/admin'
+ echo -ne ' [i] Check for existing repository in /var/www/html/admin...'
[i] Check for existing repository in /var/www/html/admin...+ is_repo /var/www/html/admin
+ local directory=/var/www/html/admin
+ local curdir
+ local rc
+ curdir=/home/pi
+ [[ -d /var/www/html/admin ]]
+ cd /var/www/html/admin
+ git status --short
+ cd /home/pi
+ return 0
+ echo -e '\r [✓] Check for existing repository in /var/www/html/admin'
[✓] Check for existing repository in /var/www/html/admin
+ update_repo /var/www/html/admin
+ local directory=/var/www/html/admin
+ local curdir
+ local 'str=Update repo in /var/www/html/admin'
+ curdir=/home/pi
+ cd /var/www/html/admin
+ echo -ne ' [i] Update repo in /var/www/html/admin...'
[i] Update repo in /var/www/html/admin...+ git stash --all --quiet
+ git clean --quiet --force -d
+ git pull --quiet
+ return 1
+ echo -e '\n Error: Could not update local repository. Contact support.'
Error: Could not update local repository. Contact support.
+ exit 1