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 already have the latest version of Ubuntu 12.04.1. I want to reinstall every package again (a dist-upgrade reinstall). How do i do that?

sudo apt-get dist-upgrade only works one time. I want to reinstall again (to fix some things I broke in ubuntu).

share|improve this question

For broken packages

sudo dpkg --configure -a


sudo apt-get install -f

Reinstall package

sudo apt-get install --reinstall <package name>


If the problem of a broken package still exist the solution is to edit the dpkg status file manually.

sudo nano /var/lib/dpkg/status

Locate the corrupt package, and remove the whole block of information about it and save the file.

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.