gpt4 book ai didi

linux - 如何在 Ubuntu 20.04 中安装 Git

转载 作者:行者123 更新时间:2023-12-04 19:06:44 24 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





git installation error missing installation candidate

(6 个回答)


去年关闭。




我已经在 Virtualbox 上安装了 Ubuntu 20.04。我试图安装 Git。我已按照 Git 网站上的说明进行操作。
当我尝试安装 sudo apt-get install git我收到一个错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package git 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 'git' has no installation candidate
``

最佳答案

首先,尝试sudo apt update && sudo apt upgrade .
如果这不起作用,sudo add-apt-repository ppa:git-core/ppa && sudo apt update

关于linux - 如何在 Ubuntu 20.04 中安装 Git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67008299/

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