Debian Jessie:dpkg:不可恢复的致命错误,正在中止

Debian Jessie:dpkg:不可恢复的致命错误,正在中止

当我做一个

apt-get upgrade

我明白了

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

当我尝试时

apt-get -f install

它告诉我

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)

我怎样才能解决这个问题?我尝试卸载这些软件包。没有帮助,因为我不能。

答案1

您的包数据库似乎严重混乱。您应该重新安装受影响的软件包:

apt-get --reinstall install perl-base gcc-4.8-base perl-modules perl findutils liberror-perl initramfs-tools

您可以添加错误消息中出现的任何其他内容。

如果liberror-perl太混乱而无法apt-get工作,请尝试:

wget http://ftp.de.debian.org/debian/pool/main/libe/liberror-perl/liberror-perl_0.17-1.1_all.deb
dpkg -i liberror-perl_0.17-1.1_all.deb

尽管如果最后一个“致命错误”确实dpkg像听起来那么糟糕,您需要从救援系统执行上述操作(将文件系统挂载/mnt到救援系统中,然后运行dpkg --root=/mnt -i liberror-perl_0.17-1.1_all.deb)。

相关内容