The*_*hod 8 git packages ubuntu ubuntu-10.04 apt-get
我正在使用 Ubuntu 10.04 LTS。我正在考虑使用 git 作为个人项目的源代码控制和 Github 作为远程存储库。我在向远程 github 存储库推送提交时遇到问题,收到以下错误消息:
The requested URL returned error: 403 while accessing https://github.com/Jstall/helloworld.git/info/refs
Run Code Online (Sandbox Code Playgroud)
当我进行一些挖掘时,我发现问题可能是我没有最新版本的 Git。当我做一个 --version 时,我发现我在version 1.7.0.4
本地有。所以我尝试使用以下方法更新 git:
sudo apt-get install git
Run Code Online (Sandbox Code Playgroud)
但得到以下错误:
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
Run Code Online (Sandbox Code Playgroud)
我试过运行:
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
并再次尝试,但似乎没有任何区别。我不确定它是否相关,但是当我运行更新时,我也收到了几个 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
Run Code Online (Sandbox Code Playgroud)
我不确定下一次应该尝试什么时候。任何人都可以建议采取行动来解决这个问题吗?任何意见,将不胜感激。非常感谢!
小智 10
您可以使用我的 Launchpad PPA,目前它为您提供 git 1.8.0。
Git 可用于以下 Ubuntu 发行版:
要安装我的 git 存储库,请按照以下说明操作:适用于 Ubuntu 的 Git 软件包 • 虚拟家庭
sudo add-apt-repository ppa:pdoes/ppa
Run Code Online (Sandbox Code Playgroud)
要摆脱 404,您必须从存储库源中删除它们。我不是 100% 确定我是否给出了正确的指示,因为我没有;没有带有 Lucid 的机器,但它应该相当接近。
小智 9
显然git
在 Linux 系统上指的是GNU Interactive Tools。在 Ubuntu 上下载Git 版本控制系统的命令是:
sudo apt-get install git-core git-doc
Run Code Online (Sandbox Code Playgroud)
如果您想要或需要其他工具(包括 GUI 和 Web 访问),您可以:
sudo apt-get install gitweb git-gui gitk git-email git-svn
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
9857 次 |
最近记录: |