Error: Unable to update package cache

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

[Successful update insall]

Actual Behaviour:

[Error: Unable to update package cache. Please try "sudo apt-get update"]

Debug Token:

Error that I'm getting.

pi@bishop:~ $ pihole -up
  [i] Checking for updates...
  [i] Pi-hole Core:     up to date
  [i] Web Interface:    up to date
  [i] FTL:              update available

  [i] FTL out of date, it will be updated by the installer.

  [✓] Root user check

  [✗] Update local cache of available packages
  Error: Unable to update package cache. Please try "sudo apt-get update"
  Unable to complete update, please contact Pi-hole Support

Tried "sudo apt-get update" but I'm getting more than a few 404s errors.

pi@bishop:~ $ sudo apt-get update
Ign http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Ign http://mirrordirector.raspbian.org jessie Release.gpg
Ign http://mirrordirector.raspbian.org jessie Release
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Err http://mirrordirector.raspbian.org jessie/main armhf Packages
  404  Not Found [IP: 93.93.128.193 80]
Err http://mirrordirector.raspbian.org jessie/contrib armhf Packages
  404  Not Found [IP: 93.93.128.193 80]
Err http://mirrordirector.raspbian.org jessie/non-free armhf Packages
  404  Not Found [IP: 93.93.128.193 80]
Err http://mirrordirector.raspbian.org jessie/rpi armhf Packages
  404  Not Found [IP: 93.93.128.193 80]

Also tried "apt-get update --allow-releaseinfo-change" that I found doing a forum search, but I'm getting unknown command error.

pi@bishop:~ $ apt-get update --allow-releaseinfo-change
E: Command line option --allow-releaseinfo-change is not understood

OS info.

pi@bishop:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Raspbian Jessie is very, very old. Those 404 errors are most likely from the fact that even Raspberry Pi no longer supports the release.

Normally we'd suggest an in place upgrade but you're behind by a few releases so you will need to start fresh with a new Raspberry OS install. You can back up your Pi-hole configurations to save them and restore that when you have a new Raspberry OS set up.

In addition, Jessie is not supported by Pi-hole either.

To back up your Pi-hole configuration, use the web admin GUI > Settings > Teleporter function.

1 Like

got it, thanks.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.