无法在 Ubuntu 21.10 上安装 Git

无法在 Ubuntu 21.10 上安装 Git

当我尝试在 Ubuntu 21.10 上安装 Git 时,出现错误。我用来安装 git 的命令是:

sudo apt update
sudo apt upgrade
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git

我遇到的错误是:

$ sudo apt install git
Reading package lists... Done
Building dependency tree... Done
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.

相关内容