dpkg: unrecoverable fatal error, aborting:
reading files list for package 'libxml2:i386': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
Asked
Active
Viewed 140 times
0

Byte Commander
- 107,489
-
https://askubuntu.com/questions/139377/unable-to-install-any-updates-through-update-manager-apt-get-upgrade Check it – MH314K Jul 16 '17 at 16:06
1 Answers
0
Unable to install any updates through update manager/apt-get upgrade Check it
So the solution is the following:
- Go into the /var/lib/dpkg directory
- Make a backup of the status file
- Edit the status file
- Search the package that gave the error
Just delete the lines from this package (but let all other lines that concern other packages even if they contains the broken package in their "Replaces" or "Depends" fields)
[…]
Save changes in the status file
Run: sudo dpkg --configure -a
Force the re-installation of missing dependencies (because now, there are some):
sudo apt-get -f install
I think that if the broken package does not depend on any other package (could be rare), just reinstall it:
sudo apt-get install the_package
- Everything is fine now can update, upgrade, or install new packages!

MH314K
- 51
- 1
- 5