Server Fault is a question and answer site for system and network administrators. 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 was playing with package manager on my debian squeeze, was trying to install php 5.4 instead of php 5.3 and now it acts like everything is removed, I dont see any green "checkboxes" on already installed software, all the checkboxes are clean and it acts like nothing is installed. It looks like I completely removed all the data about already installed packages.. Is there a way back? How to restore it?

share|improve this question
Please post your resolution as an answer and mark it accepted when you're able. – jscott Mar 5 '13 at 14:24
Will do, Sir! Just have to wait 6-8 hours to answer my Q. – Wiggler Jtag Mar 5 '13 at 14:51
up vote 0 down vote accepted

Solved! For others with the same problem:

cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
share|improve this answer

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.