我正在尝试通过命令安装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
,但没有工作。
4条答案
按热度按时间ljo96ir51#
我认为你需要看看那里:我使用ubuntu 20.04,但它为我运行。
字符串
mzaanser2#
尝试先用
sudo apt-get upgrade
更新所有现有的软件包。之后你可能想运行sudo apt-get autoclean
。最后再尝试安装一次gitsudo apt-get install git
。oug3syen3#
字符串
vjrehmav4#
这对我来说很有效:
字符串
From:https://ubuntuforums.org/showthread.php?t=2454450