0

我刚刚安装了 ubuntu 19.10,我试图安装 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 update
sudo apt upgrade
sudo apt install git

但这些都行不通。 为什么我会收到此错误 。请帮助我解决此问题...

谢谢你。

4

2 回答 2

0

希望这会奏效。1.打开软件和更新

  1. 更新选项卡

检查并确保启用了重要的安全更新 (Xenial-security) 和推荐的更新 (xenial-update)。

重新加载源并再次尝试安装所需的软件或库。

于 2020-12-12T02:12:44.800 回答
0

尝试不同的包管理器:

sudo apt-get install aptitude

然后:

sudo aptitude install git
于 2022-02-03T18:39:07.257 回答