Trouble getting latest version of Git

Posted by TheMethod on Super User See other posts from Super User or by TheMethod
Published on 2012-11-11T14:26:56Z Indexed on 2012/11/11 17:05 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

I am using Ubuntu 10.04 LTS. I'm looking at using git as source control for personal projects and Github as a remote repository. I was having trouble pushing a commit to my remote github repo getting the following error message:

The requested URL returned error: 403 while accessing https://github.com/Jstall/helloworld.git/info/refs

When I did some digging I found that the problem could be me not having the latest version of Git. When I did a --version I found that I have version 1.7.0.4 locally. So I tried to update git using:

sudo apt-get install git

but get the following error:

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

I've tried running:

sudo apt-get update

and trying again but it didn't seem to make a difference. I'm not sure if it's relevant but I'm also getting a couple of 404's when I run update:

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

I'm not sure when I should try next. Could anyone suggest a course of action to get this resolved? Any advice would be appreciated. Thanks much!

© Super User or respective owner

Related posts about ubuntu

Related posts about ubuntu-10.04