"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.
- Go into the /var/lib/dpkg directory
- Make a backup of the "status" file
- Open the status file as root and find the package that causes the error. In this case, its "PACKAGE: inkscape".
- Delete all the text until the next PACKAGE: declaration in the file.
Related videos on Youtube
Author by
Gavin Perkins
Updated on June 14, 2022Comments
-
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 over 10 yearsthis thread on Ubuntu forums might be of some help
-
Gavin Perkins over 10 yearsThanks 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.
-