我尝试安装 git
在 Ubuntu 12.10 上使用命令 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 rm -vf /var/lib/apt/lists/*
sudo apt-get update
关于git安装错误缺少安装候选,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63632820/