1

It doesn't matter what I try to install using my package manager(sudo apt-get install whatever), I always get this error.

dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'inkscape': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)

I have researched and have tried to rebuild my dpkg status file, and I have also tried to revert to an older version, but it either hasn't worked or I am doing it wrong.

Also, when I try to run the command "sudo apt-get update", I get this error.

The problem started when I lost my internet connection while downloading monodevelop. Any help is greatly appreciated.

4

1 回答 1

3

我想出了答案,所以我会在这里发布,以防其他人将来遇到同样的问题。

注意:在此修复之后,apt-get 不再自动为我安装依赖项,而无需使用 -f 标志。

  1. 进入 /var/lib/dpkg 目录
  2. 备份“状态”文件
  3. 以 root 身份打开状态文件并找到导致错误的包。在这种情况下,它的“包:inkscape”。
  4. 删除所有文本,直到文件中的下一个 PACKAGE: 声明。
于 2013-09-03T22:46:44.727 回答