Error installing or updating any software

Hi all, thank you for your help! Recently I tried to install some packages for setting up my cloud server on the raspberry, such as rtorrent and dmenu for i3wm
The problem is that, at any time I try to install/uninstall/update something, it returns me this error:

sudo apt-get install program-name
Reading package lists... Error!
E: lzma_read: Read error (10)
E: The package lists or status file could not be parsed or opened.

Can someone help me? It’s true that I’ve seen a problem like this before, but it didn’t had any solution. Maybe it’s a bug or something about the recent update. Thanks for your help! :grin:

Here’s some useful information:

**#### Details:**
*- Date           | Wed Aug 31 11:08:59 BST 2022*
*- DietPi version | v8.8.1 (MichaIng/master)*
*- Image creator  | DietPi Core Team*
*- Pre-image      | from scratch*
*- Hardware       | RPi 4 Model B (aarch64) (ID=4)*
*- Kernel version | `Linux LOLITA 5.15.56-v8+ #1575 SMP PREEMPT Fri Jul 22 20:31:26 BST 2022 aarch64 GNU/Linux`*
*- Distro         | bullseye (ID=6,RASPBIAN=0)*
*- Command        | `apt-get -y update`*
*- Exit code      | 100*
*- Software title | DietPi-Software*

**#### Additional logs:**

Hit:1 https://deb.debian.org/debian bullseye InRelease
Hit:2 https://deb.debian.org/debian bullseye-updates InRelease
Hit:3 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists...
E: lzma_read: Read error (10)
E: The package lists or status file could not be parsed or opened.

You can try following

/boot/dietpi/func/dietpi-set_software apt-cache clean
apt update
4 Likes

Ok,itseems it worked for now. I’ll note it down if it happens again!
Thanks for your help! :grin: