关于未满足的依赖关系

关于未满足的依赖关系

安装 openssh 服务器时使用以下命令:

sudo apt-get install openssh-server

我收到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 bcmwl-kernel-source : Depends: dkms but it is not going to be installed
 debhelper : Depends: dh-apparmor but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我该如何解决这个问题?

答案1

sudo apt-get update
sudo apt-get install -f

这将安装所有未满足的依赖项,并完成您尝试安装的由于未满足的依赖项而未完成的任何内容的安装。

相关内容