gpt4 book ai didi

git - 在 ubuntu 18.04.2LTS 中安装 git 时出现错误

转载 作者:行者123 更新时间:2023-12-04 18:57:11 27 4
gpt4 key购买 nike

我正在尝试通过命令安装 git。

sudo apt install git

显示错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not going to be installed
Depends: git-man (> 1:2.17.1) but it is not going to be installed
Depends: git-man (< 1:2.17.1-.) but it is not going to be installed
mongodb-org : Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
Depends: mongodb-org-tools but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

此外,尝试运行命令 apt --fix-broken install但没有用。

最佳答案

我认为你需要在那里看到:
我使用 ubuntu 20.04,但它为我运行。

https://linuxize.com/post/how-to-install-git-on-ubuntu-18-04/

关于git - 在 ubuntu 18.04.2LTS 中安装 git 时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56901922/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com