【发布时间】:2017-10-03 01:34:34
【问题描述】:
我尝试安装 git 几个小时,但无论我做什么都会收到此错误:
sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not installable
E: Unable to correct problems, you have held broken packages.
我在这里阅读了答案,但我尝试了以下方法但没有成功:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f
我已经尝试过这里的解决方案:
https://superuser.com/questions/899311/apt-get-error-when-installing-git
我删除了/var/lib/apt/lists/* 中的所有内容并运行sudo apt-get update
我也尝试安装liberror-perl,然后出现以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package liberror-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'liberror-perl' has no installation candidate
如何解决这个问题的包?谢谢。
更新:现在我尝试安装另一个包,但我得到了同样的错误:
Package 'devscripts' has no installation candidate
【问题讨论】:
-
这个link可以解决这个问题
标签: linux git installation packages