安装包时如何处理未满足的依赖关系?

安装包时如何处理未满足的依赖关系?

我正在尝试安装 tmux,但出现此错误。我也很想知道如何解决此类问题,因为有时在安装这些软件包时经常会出现这种情况。当它显示“依赖于特定软件包”时。这是否意味着它缺失,您必须先安装它,然后才能安装所需的软件包(在我的情况下是 tmux)。

但是如果我想安装缺少的依赖项(linux-headers-3.2.0-53-virtual),我也会收到错误。——sudo apt-get install linux-headers-3.2.0-53-virtual


sudo apt-get -f install tmux

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:
 linux-headers-virtual : Depends: linux-headers-3.2.0-53-virtual 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 aptitude install tmux

相关内容