我似乎得到一个反复依赖,我该如何解决这个问题?

我正在尝试安装make – 通常我只需键入sudo apt-get install make就可以了,但是在这台服务器上,我得到了以下内容;

 The following packages have unmet dependencies: git-core: Depends: libdigest-sha1-perl but it is not going to be installed Depends: rcs but it is not going to be installed 

首先,我不完全明白git-core与什么有什么关系,但是现在我只是想让它工作,所以我通过运行apt-get -f install这个问题,但是由于同样的原因,这个失败了。

所以我试图安装libdigest-sha1-perl ,因为需要rcs而失败。 所以我去安装rcs并猜测它为什么会失败? 是的libdigest-sha1-perl是需要的。

我以前从来没有遇到过这个问题,任何关于如何实现这个目标的指针都会被大大接受。

如果出现这种情况,该机器正在运行Debian 5.0.9。

git-core与make没有任何关系,但是你会得到这个错误,无论你试图安装什么东西 – 如果某些依赖被破坏,apt-get将不会继续。

尝试以下几点:

  • 尝试重新安装git-core:
    apt-get remove git-core
    apt-get update
    apt-get install git-core不知道Debian 5,但是由于Debian 6 git-core已经过时,所以你应该为git版本控制系统安装名为git软件包。
  • 或者下载make并用dpkg安装;