git安装报错缺少安装候选项

标签 git ubuntu

我尝试使用命令 sudo apt-get install git 在 Ubuntu 12.10 上安装 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/30932121/

相关文章:

git svn - cygwin 下的错误

git - 我应该忽略在 Git 中提交的 launchSettings.json 文件吗?

android - 如何有效地支持代码中稍有不同的多个Android项目?

c - mpicc-vt : command not found

firefox - 是否可以直接从命令行使用 firefox 的 google 搜索栏?

git - 如何从 GitHub 中完全删除提交?

linux - 验证多个目录存在于其适当的分支上

linux - 如何在系统启动时在后台运行 ruby​​ 脚本

Python:导入 autobahn_autoreconnect 导致 RuntimeError

ubuntu - Gsettigs 和 dconf 设置热键