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

On branch master
Your branch and 'origin/master' have diverged,
and have 47 and 248 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit, working directory clean

Have you made any changes to that repository? Try doing the sudo git pull and see if that brings you up to date.

I haven't made any changes that I'm aware of.

Receiving the following on git pull:

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@pi1.(none)')

Okay, something has made a change or a commit to that directory/repository. Try running sudo git reset --hard HEAD and then sudo git pull again.

Same result.

With something being modified in that directory/repo, would it be a better option to reinstall clean? Not sure what would have modified that directory/repo.

pi@raspberrypi:/tmp $ 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=GitHub - pi-hole/web: Pi-hole Dashboard for stats and more

  • webInterfaceDir=/var/www/html/admin

  • piholeGitUrl=GitHub - pi-hole/pi-hole: A black hole for Internet advertisements

  • 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
    ++ [[ 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.6f5ahY

  • exec

  • rm /tmp/pihole_temp.6f5ahY

  • 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
    ++ grep -Po '(?<=PHP )[^ ]+'
    ++ head -n1

  • 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=5725376

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

  • [[ 5725376 -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

If you can do a clean, I would suggest it. Something has made modifications in the web page repository, so we can either try to walk them back, or just start new.

You have a different error, try running sudo apt update and see what the underlying error is.

I'll start new. I need to update my OS image as well. Thanks for the assist @DanSchaper.

2 Likes

Thank you for using the Pi-hole!

pi@raspberrypi:/tmp $ sudo apt update
Ign:1 http://build.openvpn.net/debian/openvpn/stable [jessie] InRelease
Err:2 http://build.openvpn.net/debian/openvpn/stable [jessie] Release
404 Not Found [IP: 52.52.118.245 80]
Hit:3 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Get:4 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]
Reading package lists... Done
E: The repository 'http://build.openvpn.net/debian/openvpn/stable [jessie] Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

That's an error with OpenVPN, the installer will not continue if the underlying OS has any kind of package management issues. Can you check with OpenVPN and see if they are reporting any kind of problems currently?

I can try. Earlier I did try to uninstall OpenVPN completely but it didn't seem to remove everything. Sorry, not well versed in RPi

No problem, you can take a look at /etc/apt/sources.list.d/ for any left over OpenVPN files, or for entries in /etc/apt/sources.list for OpenVPN and remove them.

Thanks for your help. I removed Open VPN completely and removed the OpenVPN files sitting in /etc/apt/sources.list. This enabled me to successfully run sudo apt update. However, I still get the same error when trying to update

pi@raspberrypi:/etc/apt/sources.list.d $ sudo apt update
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]
Fetched 25.3 kB in 1s (14.9 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

pi@raspberrypi:/etc/apt/sources.list.d $ pihole -up
[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] FTL: update available
[i] FTL out of date
[i] FTL Checks...
[i] Downloading and Installing FTL...curl: (22) The requested URL returned error: 404 Not Found
[✗] Downloading and Installing FTL
Error: URL not found

Debug token is 1nf9y2l875

What is the output of

uname -a

Linux raspberrypi 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l GNU/Linux

OK thanks. Still trying to figure out why some people are getting 404's.

No problem. Appreciate the quick responses!

I was also having the 404 issues with the following message when doing pihole -up:

Downloading and Installing FTL...curl: (22) The requested URL returned error: 404 Not Found

I've uploaded the log: 2w8vy2dxr3

It had an error when i first went to upgrade, so I did a dist-upgrade and tried again. It looks like the resolving part seems to work, but errors when doing pihole -up and also there is no web interface. That manual 'curl' command was successful. I also tried adding Google's DNS to the resolv.conf.

After the log upload, I attempted a repair (pihole -r) which was successful and NOW when running pihole -up it's now happy except for this message:

warning: Log for ref refs/heads/master unexpectedly ended on Sun, 18 Mar 2018 00:39:13 +0000.