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
1 Answer 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.
-
Doesn't work. The second option "reinitialising the files list" doesn't work either.Cimlah– Cimlah2020年05月26日 10:38:12 +00:00Commented May 26, 2020 at 10:38
-
@Cimlah Seems it's a problem with
dpkg
itself. You may check with the debug option. Get help withdpkg --debug=help
.Ingo– Ingo2020年05月26日 12:02:25 +00:00Commented 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– Cimlah2020年06月16日 17:34:11 +00:00Commented Jun 16, 2020 at 17:34
Explore related questions
See similar questions with these tags.
apt-get
? Or are you really leaving out the hyphen?apt-get
sudo dpkg --configure -a && sudo apt update && sudo apt upgrade
dpkg --configure -a
does not solve the problem.