![未找到 gitolite 的安装候选项](https://linux22.com/image/1138434/%E6%9C%AA%E6%89%BE%E5%88%B0%20gitolite%20%E7%9A%84%E5%AE%89%E8%A3%85%E5%80%99%E9%80%89%E9%A1%B9.png)
我正在尝试使用命令安装 git 和 gitolite sudo apt-get -y install git gitolite
。它给出了以下输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gitolite 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 'gitolite' has no installation candidate
我尝试更新 apt-get,但没有任何效果。有人知道我该如何修复这个问题吗?
答案1
对于 Xenial Xerus:
andrew@athens:~$ apt-cache search gitolite
gitolite3 - SSH-based gatekeeper for git repositories (version 3)
git-notifier - git commit email notification script
andrew@athens:~$
所以你的命令应该是:
sudo apt-get install git gitolite3
这与旧版本的 Ubuntu 不同......
答案2
不要以为你已经正确猜出了包名!
$ apt-cache search git | grep lite
gitolite3 - SSH-based gatekeeper for git repositories (version 3)
gitolite - SSH-based gatekeeper for git repositories
icewm-lite - wonderful Win95-OS/2-Motif-like window manager
(我明白,gitolite
因为我使用的是 14.04)YMMV