我正在使用 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)