在 ubuntu 14.04 上安装 git 崩溃

在 ubuntu 14.04 上安装 git 崩溃

我无法在 ubuntu 上安装 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.

我也尝试安装 liberror-perl,但失败了

sudo apt-get install 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

答案1

请遵循以下步骤:

步骤1:

sudo apt-get update

第2步:

sudo apt-get install git

步骤3:

Sudo apt-get autoclean

步骤4:

Sudo apt-get autoremove

相关内容