In all the hustle and bustle this year, I haven’t really made any blatherings here about the joys of using the Pi-Hole on my network-wide ad blocker. I installed this the “easy way” on a Raspberry Pi running Raspberry Pi OS. Since there isn’t a version that I can easily and quickly install on openSUSE, I went for the method I could deploy the quickest. I can testify that the Pi-Hole has been great, and more on that at another time.
For some time, the Web Interface was telling me that there was an upgrade available and since there wasn’t an easy button to make it happen, I put it off. Unfortunately, it wasn’t as easy as a remote secure shell into it and performing the update as written.
In order to perform the update, I had to Secure Shell into it
Obviously your hostname / IP address may be different. Once I was in, I entered the command to perform the update.
sudo pihole -up
The process was unsuccessful as I received this error at the very end:
[✗] 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
I did as suggested and entered the command sudo apt-get update but that too left me with an error:
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 'stable' to 'oldstable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Not knowing how to get this resolved, I sought out the advise of vast knowledge provided by the internet, dug around a bit for a resolution of this little issue.
sudo apt update Hit:1 http://archive.raspberrypi.org/debian buster InRelease Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Do you want to accept these changes and continue updating from this repository? [y/N] y Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB] Get:4 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58.8 kB] Get:5 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB] Fetched 13.2 MB in 17s (774 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 104 packages can be upgraded. Run 'apt list --upgradable' to see them.
This allowed me to run pihole -up once again where it was reported as successful.
Update Complete! Current Pi-hole version is v5.6 Current AdminLTE version is v5.8 Current FTL version is v5.11
I rebooted the device and I am back up and running but now with latest version.
After some further research, it looks like the instructions in Pi-Hole are a bit dated as the command apt-get update is the old syntax. The new syntax is apt update but they don’t seem to behave the same. I don’t fully understand the apt world but regardless, my solution has been identified and my much appreciated Pi-Hole DNS filtration device is now running on the latest version .
9 thoughts on “Pi-Hole Update Troubles”
Thanks for your clear instructions. This was exactly my issue, and your short little guide saved me some grief 🙂
Excellent! I am glad that you were able to resolve your issue. It is the reason I do this, the hopes it might help someone else. Thank you for your feedback!
The clear instructions helped, got it updated now.
I appreciate the feedback, very much.
Thank for your clear instructions. It helped a lot and save met lots of time searching for a solution.
Great, I’m glad it was helpful!