Installer says " Error: Unable to update package cache. Please try "sudo apt-get update" update run and same error

Standard install as far as im aware.

Expected Behaviour:

using a 2011 pi1? running a fresh install of rasbian on 16gb sd card
trying to install the software

Actual Behaviour:

Getting hung up at the same spot even after running the updates and rebooting.



Debug Token:

N/A

Im not sure what to do next, any advice appreciated. Thanks

Have you tried:

su --login to login as root

and then the curl?

Can your pi access the Internet?

You are never going to install Pi-hole on Wheezy, regardless of whether you solve this package problem or not.

Our currently supported versions of Raspbian (or now called Raspberry Pi OS) are Buster (10) and Bullseye (11) ; and soon we will support Bookworm (12).

Wheezy (Debian 7) is beyond ancient, and is almost a half decade out of support by Pi-hole and Raspbian.

  • Wheezy becomes oldoldstable (17 June 2017; 6 years ago)

  • Wheezy long term support reached end-of-life (1 June 2018; 5 years ago)

  • Wheezy extended long term support reached end-of-life (30 June 2020; 3 years ago)

Cut your losses now.

Get a fresh SD card, use the Raspberry Pi imager and install a fresh copy of Raspbian Bookworm Lite.

Then install Pi-hole using the unsupported OS bypass (Raspbian Bookworm works fine by our current testing), and go from there.

curl -sSL https://install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash

2 Likes

Okay thank you, I kinda figured that was the case honestly as the .img i used was last modified in 2015. I will load up a fresh SD and give it a shot. Thanks again for the quick and concise response! Cheers

1 Like

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