PiHole : Stuck at “Update local cache of available packages”

0
Screen Shot 2020-11-06 at 3.30.51 PM

So – your trying to update your fancy lil PiHole and your stuck at “Update local cache of available packages”? I found my issue to be that the device was trying to use IPV6 instead of IPV4. So – a few things you can do:

  1. Manually set APT-GET to use IPv4 once via command line :
apt-get -o Acquire::ForceIPv4=true update

(Alternatively you can change the 4 to a 6 to FORCE it to use ipv6.

2. Set APT-GET to ALWAYS use IPV4;

Edit 99force-ipv4 by typing:

sudoedit /etc/apt/apt.conf.d/99force-ipv4

and then paste in :

Acquire::ForceIPv4 "true";

Once you have that pasted in :X to exit selecting to save file the file.
Once that is done, try updating again. You shouldn’t need to reboot.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.