Can't Update: The package cache file is corrupted

The issue I am facing:
When I attempt to update my system via sudo raspi-config (option 8: Update), it fails with an error:

nobody@pihole:~ $ sudo raspi-config
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Error!
E: Unable to parse package file /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-armhf_Packages (1)
E: Unable to parse package file /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_i18n_Translation-en (1)
W: You may want to run apt-get update to correct these problems
E: The package cache file is corrupted

Running sudo apt update does nothing to correct the issue -- i get the same error. How can I fix this?

Details about my system:

Raspberry Pi 3B. Installed Raspberry Pi OS Lite (x64).

What I have changed since installing Pi-hole:

I have changed no system-level configurations. I only added block lists via the web interface.

I resolved this issue by purging all lists    sudo rm -rf /var/lib/apt/lists/*    then running    sudo apt update    again.

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