'(file name)' : Input/output error

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

Are you familiar with this error while installing new package or running update manager on your Ubuntu/Mint machine?

When the error appears, it is related with:
  1. A certain package which info is corrupted in the dpkg database. Or
  2. There are chances that your disk has gone bad.
In my case,  ‘libxrender1′ package info was corrupted in the dpkg database. So the solution was:
  1. Go into the /var/lib/dpkg directory and keep a backup of the ‘status’ file
  2. Open the ‘status’ file in edit mode and search the package that gave the error
  3. Just delete the lines for the erroneous package and save changes
  4. Run: sudo dpkg –configure -a
  5. Force the reinstallation of missing dependencies with sudo apt-get -f install
Hopefully you problem will be solved and you can update, upgrade, or install new packages!
What if you get same message again? Check your disk for bad sectors!!!
Note: This solution is something that worked for me and should work for others too in most cases, but if it doesn’t, let me know in the comments below.

CARA KEDUA :
Unfortunatelly there is no automated fix yet. Do
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
And all should be fine. 

Source: http://ubuntuforums.org/showthread.php?t=863742
 
 


Tidak ada komentar:

Posting Komentar