Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an empty /var/lib/dpkg and as consequence both apt and dpkg are starting to complain about everything and with every simple task I would like to do with them: there is a way to rebuild that directory ?

I simply got this directory deleted ... don't ask why, it's something too "experimental" that I should not have try.

share|improve this question
up vote 2 down vote accepted

Unless you have a backup you can restore from, no. You will have to reinstall.

share|improve this answer
I noticed some automated backups under /var/backups/ but they are causing more troubles than benefits, also this way the rebuilding and the re-indexing of all the packages just takes forever ... – user2311177 Apr 29 '13 at 1:17
do you know where i can download the most up to date iso of Precise so I don't have to re-download all the updates separately ? – user2311177 Apr 29 '13 at 1:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.