PDA

View Full Version : [all variants] Force reinstall of package



hornetster
August 9th, 2012, 12:17 PM
Have searched for this and can't find a solution...
Believe I have screwed my Apache and/or Zoneminder packages, and have looked for a method to force a 'reinstall' of a package (don't want to have to uninstall/reinstall - scared it could get ugly..) but can't find one.
How do I fix a broken package?
Thanks.

unevenflow
August 9th, 2012, 03:17 PM
Hey you could try

sudo apt-get install --no-install-recommends package_name

hornetster
August 25th, 2012, 01:14 PM
Hey you could try

sudo apt-get install --no-install-recommends package_name

Nope, just get "<package-name> is already the newest version."

dino99
August 25th, 2012, 02:44 PM
choices:

sudo apt-get install --reinstall mypackage

sudo dpkg-reconfigure mypackage

( or if the other solutions have failed:

sudo apt-get purge mypackage && sudo apt-get install mypackage

and logout/in )

hornetster
January 11th, 2013, 11:13 AM
a belated thanks!

Nirgali
February 26th, 2013, 07:41 PM
posted on wrong topic, my bad.