When i do a
apt-get upgrade
i get
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-image-3.16.0-4-amd64 : Depends: initramfs-tools (>= 0.110~) but it is not installed or
linux-initramfs-tool
Recommends: firmware-linux-free (>= 3~) but it is not installed
Recommends: irqbalance but it is not installed
When i then try
apt-get -f install
It tells me
Selecting previously unselected package initramfs-tools.
dpkg: warning: files list file for package 'perl-base' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'gcc-4.8-base:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'perl-modules' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'perl' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'findutils' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
files list file for package `liberror-perl' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)
How can i fix this? I tried uninstalling those packages. Did not help because i cant.
/var/lib/dpkg/info
contain anything? – Stephen Kitt Feb 28 '17 at 11:17grep -P -r '^[ \t]*[^#[ \t]+' /etc/apt/sources.list /etc/apt/sources.list.d/*
– Feb 28 '17 at 11:27apt-cache policy initramfs-tools
? – GAD3R Feb 28 '17 at 11:38