Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have seen it before. I am just wondering what exactly does it do?

share|improve this question

1 Answer 1

up vote 13 down vote accepted

From man apt-get:

   -f, --fix-broken
       Fix; attempt to correct a system with broken dependencies in place. This
       option, when used with install/remove, can omit any packages to permit APT
       to deduce a likely solution. If packages are specified, these have to
       completely correct the problem. The option is sometimes necessary when
       running APT for the first time; APT itself does not allow broken package
       dependencies to exist on a system. It is possible that a system's dependency
       structure can be so corrupt as to require manual intervention (which usually
       means using dselect(1) or dpkg --remove to eliminate some of the offending
       packages). Use of this option together with -m may produce an error in some
       situations. Configuration Item: APT::Get::Fix-Broken.
share|improve this answer
9  
A you can thank the lord for it. When you have a broken package its like having a rock inside your shoe... and you are in a marathon... with bears riding sharks riding huge spiders. But thanks to this broken stuff gets fixed. –  Luis Alvarado Aug 24 '11 at 4:04
    
Thank you! Very helpful! :-) –  TheShadowFog Aug 24 '11 at 12:59
    
In the occasional situation where sudo apt-get -f install is not, by itself, sufficient to fix broken packages, see this answer. –  Eliah Kagan Sep 13 '12 at 16:22

Your Answer

 
discard

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.