Error updating Pihole (Downloading and Installing FTL Error: URL not found)

I also tried running a repair via (pihole -r) and this has fixed it for me too. I then ran pihole -up and it shows everything is up to date and I have a working dashboard. LMK if you need anything else to help others.

pi@raspberrypi:/etc/apt/sources.list.d $ pihole -up
[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] Web Interface: up to date
[i] FTL: up to date

still having 404 issue.

ive tried repair (-r) , changed to master branch.

debug token is: xt06t3x7fw

For everyone still seeing the 404 errors, can you please run the below command and either attach the output to a message or pastebin the output and link to that here? This will run the installer in a more verbose mode and should capture the complete URL that is being called so we can check exactly what the failure is being caused by.

sudo bash -x /etc/.pihole/automated\ install/basic-install.sh

The line will look something like the following:

++ curl -sSL --fail https://github.com/pi-hole/FTL/releases/download/v4.0/pihole-FTL-arm-linux-gnueabihf
3 Likes

hope this helps

https://pastebin.com/wzjbUftJ

That didn't look like it even get to the portion of the code to attempt a curl. It stopped at sudo apt install iproute, can you try running that command and see if it reports any errors?

https://pastebin.com/ujfJV275

Okay, it looks like the 404 is masking another problem. Try sudo apt -f install to fix the broken packages, reboot and then do the pi-hole update again.

Pffftttttt.... going round in circles now

https://pastebin.com/xHjp0pfW

i appreciate you taking your time to help Dan

Looks like you have no more free space on your storage device. What does sudo df -h show? Anything at 100% used?

Filesystem                   Size  Used Avail Use% Mounted on
udev                         225M     0  225M   0% /dev
tmpfs                         49M  1.9M   47M   4% /run
/dev/mapper/pihole--vg-root  8.3G  5.9G  2.0G  75% /
tmpfs                        244M     0  244M   0% /dev/shm
tmpfs                        5.0M     0  5.0M   0% /run/lock
tmpfs                        244M     0  244M   0% /sys/fs/cgroup
/dev/sda1                    472M  469M     0 100% /boot
tmpfs                         49M     0   49M   0% /run/user/1000

Your boot partition is completely full, it can't install any more packages in that partition. Try sudo apt autoremove to try and get some space and then reboot.

https://pastebin.com/SH65cEi4

still full. im running in vm and given it another 5gb extra

It looks like the 5G was added to the volume group and not to /boot, that will need to fixed before we can progress further.

You'll need to add the storage to /dev/sda1

span up up a fresh 18.04.1 ubuntu and starting again,
ran update and upgrade, restarted server,

james@pihole:~/Pi-hole/automated install$ curl -sSL https://install.pi-hole.net | bash

[✗] Root user check
[i] Script called with non-root privileges
[i] The Pi-hole requires elevated privileges to install and run
[i] Please check the installer for any concerns regarding this requirement
[i] Make sure to download this script from a trusted source

[✓] Sudo utility check

[✓] 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 apt-utils
[i] Checking for dialog (will be installed)
[✓] Checking for debconf
[i] Checking for dhcpcd5 (will be installed)
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for whiptail

then flashes up the pink install page then disappears.

what im i doing wrong now?!

Try apt-get --yes --no-install-recommends install dialog dhcpcd5 and see why those packages are not installing.

1 Like

I am working through the upgrade problems from 3.3 to 4.0 and most of this thread matches what I am seeing.



[✓] Your debug token is: i8zh9v2wv8



I have a clean, up to date, Ubuntu version and still get similar errors...

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial

sudo pihole -r

[✓] Root user check

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

[i] Existing PHP installation detected : PHP version 7.0.30-0ubuntu0.16.04.1
[i] Repair option selected
[✓] Disk space check

[✗] Update local cache of available packages
Error: Unable to update package cache. Please try "apt-get update"


sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

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

To solve this problem for me:

sudo mv /etc/resolv.conf /etc/resolv.conf.bac1
sudo vi /etc/resolv.conf
enter "nameserver 8.8.8.8" <-- prior to doing this I believe that the process was failing on DNS lookups (ironically)
sudo service networking restart
pihole -r
.
.
.
Update Complete!

Current Pi-hole version is v4.0
Current AdminLTE version is v4.0
Current FTL version is v4.0

pihole -up
[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] Web Interface: up to date
[i] FTL: up to date

sudo mv /etc/resolv.conf /etc/resolv.conf.bac2
sudo mv /etc/resolv.conf.bac1 /etc/resolv.conf
sudo service networking restart

After a couple of reboots, things appear to still be working for me.
I hope that this helps.