Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Members / jhb / repair /var/lib/dpkg/status

repair /var/lib/dpkg/status

by Jörg Baach last modified Mar 09, 2011 09:11 AM
Sometimes I can't use apt-get remove because of some "grep-status: /var/lib/dpkg/status:12345: expected a colon'.

Someone else found a nice solution

For personal reference, the short version:

sudo apt-get install pcregrep
pcregrep -nM '\n\s*\n[^P]+' /var/lib/dpkg/status

This gives a line number. Edit the file, jump to that line number. There is an empty blank line there. Put a dot (.) in there, apt-get update.

Add comment

You can add a comment by filling out the form below. Plain text formatting.

Question: What is 23 plus 19?
Your answer: