Linux.com

apt-get -f install

Posted by: Anonymous Coward on October 23, 2005 03:10 AM
The thing to do when you install manually a package that breaks your system is this command :

apt-get -f install

It will try to install all the necessary packages to make your system works via the net and if it can't do that, it will uninstall the package you installed causing the problem in the first place.

Either way, system unbroken.

If you still want that package that broke your system, look for the dependencies. Compile them but instead of doing a make install, do a checkinstall. It will do a fake install, check what would be done, create a<nobr> <wbr></nobr>.deb and install it for you. That way, it will be easy to uninstall it if you want to.

You will probably have to install checkinstall :

apt-get install checkinstall

#

Return to What to do when apt-get fails