我正在使用Ubuntu 10.04 LTS。我正在寻找将git用作个人项目的源代码控制,并将Github用作远程资源库。我在将提交推送到远程github存储库时遇到以下错误消息:
The requested URL returned error: 403 while accessing https://github.com/Jstall/helloworld.git/info/refs
当我进行一些挖掘时,我发现问题可能出在我没有最新版本的Git。当我执行--version时,我发现我在version 1.7.0.4
本地。所以我尝试使用以下方式更新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-get update
再试一次,但似乎没有什么不同。我不确定是否相关,但在运行更新时也会遇到404错误:
Err http://wine.budgetdedicated.com edgy/main Packages
404 Not Found
Fetched 4,117B in 0s (5,142B/s)
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/edgy/universe/binary-i386/Packages.gz 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://wine.budgetdedicated.com/apt/dists/edgy/main/binary-i386/Packages.gz 404 Not Found
我不确定何时应该尝试下一个。有人可以建议采取行动来解决这个问题吗?任何意见,将不胜感激。非常感谢!
您可以使用我的Launchpad PPA,目前它为您提供git 1.8.0。
Git可用于以下Ubuntu发行版:
要安装我的git仓库,请遵循以下说明:Ubuntu的Git软件包•虚拟家庭
sudo add-apt-repository ppa:pdoes/ppa
要摆脱404,您必须将其从存储库源中删除。我不确定我是否能给出正确的说明,因为我没有一台装有Lucid的机器,但是应该相当接近。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句