"reading files list for package 'inkscape': Input/output error" while trying to install packages

13,666

I figured out the answer, so I will post it here in case anybody else has the same problem in the future.

NOTE: After this fix, apt-get no longer installs dependencies for me automatically without using the -f flag.

  1. Go into the /var/lib/dpkg directory
  2. Make a backup of the "status" file
  3. Open the status file as root and find the package that causes the error. In this case, its "PACKAGE: inkscape".
  4. Delete all the text until the next PACKAGE: declaration in the file.
Share:
13,666

Related videos on Youtube

Gavin Perkins
Author by

Gavin Perkins

Updated on June 14, 2022

Comments

  • Gavin Perkins
    Gavin Perkins almost 2 years

    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.

    • Admin
      Admin over 10 years
      this thread on Ubuntu forums might be of some help
    • Gavin Perkins
      Gavin Perkins over 10 years
      Thanks a lot, this thread had the answer I was looking for. I had already searched Ubuntu forums and I guess I overlooked this thread. Thanks again.