我对 Linux 世界还很陌生,我找到了安装 Skype 的指南。
以下是安装 Skype 的命令:
wget https://repo.skype.com/latest/skypeforlinux-64.deb
sudo dpkg -i skypeforlinux-64.deb
sudo apt install -f
我不明白为什么我应该使用最后一个命令“sudo apt install -f”。这个命令有什么用?我看到即使我不使用此命令,skype 也已安装。
提前致谢!
答案1
sudo apt install -f
“修复损坏的依赖关系”
命令行
sudo apt install -f
尝试修复程序包之间依赖关系破裂的问题。
中对此进行了解释man apt-get
,但新版本的手册页apt
并不完整。
-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 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.