Update Failed, but then shows updated?

Expected Behavior:

Pihole should update using pihole -up.

Actual Behavior:

Update failed indicating unable to update package cache. Subsequent update attempt says everything is up to date?

Debug Token:

https://tricorder.pi-hole.net/h7eyf691sf

Below is the output of my SSH session as well.

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

  [i] Pi-hole core files out of date, updating local repo.
  [✓] Check for existing repository in /etc/.pihole
  [✓] Update repo in /etc/.pihole

  [i] If you had made any changes in '/etc/.pihole/', they have been stashed usi                                   ng 'git stash'

  [✓] Root user check

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

  [i] Existing PHP installation detected : PHP version 7.3.4-2
  [i] Performing unattended setup, no whiptail dialogs will be displayed
  [✓] Disk space check
  [✗] Update local cache of available packages
  Error: Unable to update package cache. Please try "apt-get update"
  Unable to complete update, please contact Pi-hole Support
pi@pihole:~ $ pihole -up
  [i] Checking for updates...
  [i] Pi-hole Core:     up to date
  [i] Web Interface:    up to date
  [i] FTL:              up to date

  [✓] Everything is up to date!

What does pihole -v show for the installed versions. And what does sudo apt-get update show for errors?

Pi-hole version is v4.3.2 (Latest: v4.3.2)
AdminLTE version is v4.3 (Latest: v4.3)
FTL version is v4.3.1 (Latest: v4.3.1)

pi@pihole:~ $ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Reading package lists... Done
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

Same thing happened to me, have posted about it in another similar thread, told me the update had failed, definitely did not run all the way through the usual update process, then I apt-get update, it now tells me pihole is updated, dashboard tells me the same, but it never updated via SSH

It is updated, the process that pulls in the latest changes to /etc/.pihole uses git and that worked. What needs to be fixed is your apt lists or else you won't be able to run apt update or apt upgrade to get the latest fixes and changes from Raspbian.

Thanks for confirming Dan. Appreciate the help. I'll look at fixing the apt list.

That specific error is talked about on the Raspberry Pi forums, there's a single command that fixes it but I just can't remember it off the top of my head.

sudo apt-get update --allow-releaseinfo-change

2 Likes

Thanks Dan. I was just about to go look, but you beat me to it.

When I run this command I get the following error:

pi@raspberrypi_pi-hole:~ $ sudo apt-get update --allow-releaseinfo-change
E: Command line option --allow-releaseinfo-change is not understood in combination with the other options

I'm running Raspbian Stretch on a 3 B+.

Any thoughts? Thank you.

That command is for Buster.

Thanks for the reply.

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