sudo apt-get -f install 是什么意思?

什么是apt-get -f install的用法?当我运行sudo apt-get update时,最后出现了一些错误。它说尝试使用apt-get -f install命令。这个命令是什么意思?我的错误的最后一部分是:
. . .  
going to be installed  
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
1个回答

查看manpage
-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.

尝试解决未满足的依赖关系时,这是其中一种最初的解决方案。(请参阅此问题:如何在添加 PPA 后解决未满足的依赖关系?