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

4
  • Do you meant apt-get? Or are you really leaving out the hyphen?
    – Seamus
    Commented May 25, 2020 at 23:52
  • Sorry, it's apt-get
    – Cimlah
    Commented May 26, 2020 at 10:29
  • try to run sudo dpkg --configure -a && sudo apt update && sudo apt upgrade
    – kyjanond
    Commented Jun 16, 2020 at 13:54
  • @kyjanond As I've written in the post, dpkg --configure -a does not solve the problem.
    – Cimlah
    Commented Jun 16, 2020 at 17:31

1 Answer 1

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.

3
  • Doesn't work. The second option "reinitialising the files list" doesn't work either.
    – Cimlah
    Commented May 26, 2020 at 10:38
  • @Cimlah Seems it's a problem with dpkg itself. You may check with the debug option. Get help with dpkg --debug=help.
    – Ingo
    Commented May 26, 2020 at 12:02
  • Could you please expand your statement? I don't quite know how to solve the problem with just information given of using dpkg --debug=help
    – Cimlah
    Commented Jun 16, 2020 at 17:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.