D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] dpkg glitch was Re: apt-glitch?

 

Adrian Midgley wrote:
> E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to 
> correct the problem.
> lyrae:/dev# dpkg --configure -a
> dpkg: failed to write status record about `java-common' to 
> `/var/lib/dpkg/status': Input/output error
> 
> How do I retrieve that, please?

Debian reference is your friend (did I mention how good it is).

Section 6.3.4 cover dpkg status corruption

http://www.debian.org/doc/manuals/reference/ch-package.en.html#s-recover-status


Alternatively you may be able to purge and remove the problem package,
rather than trying to recover the whole of status. Looking at the files
in question is probably the first step.


Why did it become corrupt. What caused the I/O error. File system
issues? Disk space or disk problems?

This isn't Fedora Core, corruption of the dpkg status is a rare event
usually caused by Debian developers fiddling with things that shouldn't
(possibly inclusion of dodgy third party packages?!), it isn't a
designed in failure mode like "rpm" ;)

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html