0

Everytime I want to install anything using sudo apt-get command I get this error:

dpkg: warning: files list file for package 'libargon2-1:armhf' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libaribb24-0:armhf' missing; assuming package has no files currently installed dpkg: unrecoverable fatal error, aborting: files list file for package 'bind9-host' contains empty filename E: Sub-process /usr/bin/dpkg returned an error code (2)

How to get rid of this?

dpkg -a --configure does not work

Cimlah
  • 55
  • 1
  • 9

1 Answers1

1

The error message indicates that there is a problem with the files list. The files list is updated with:

rpi ~$ sudo apt update

so this is the first you should do. And afterwards it is always a good idea to upgrade your installed software with:

rpi ~$ sudo apt full-upgrade

If this does not help you can try to completely reinitialize the files list.

Ingo
  • 42,961
  • 20
  • 87
  • 207