LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2013, 05:44 PM   #1
SnH
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
git clone: Git Protocol not working


I have installed git on my 64-bit 12.04.2 Ubuntu. But when I try to clone it gives me the error:

#git clone git://git.kernel.org/pub/scm/git/git.git
Cloning into 'git'...
This is nc from the netcat-openbsd package. An alternative nc is available
in the netcat-traditional package.
usage: nc [-46DdhklnrStUuvzC] [-i interval] [-P proxy_username] [-p source_port]
[-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol]
[-x proxy_address[ort]] [hostname] [port[s]]
fatal: The remote end hung up unexpectedly

But when I give the command:
#git clone http://git.kernel.org/pub/scm/git/git.git
the operation is successful, any clues what I may be doing wrong?
 
Old 05-14-2013, 10:46 AM   #2
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Hi,

Make sure your firewall isn't blocking port 9418.

Cheers
 
Old 05-23-2013, 12:48 AM   #3
SnH
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Using ftp_proxy as ftp_proxy=ftp:// was causing the issue, but using ftp_proxy=http:// worked. Any idea Why?
 
Old 05-23-2013, 03:29 AM   #4
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Sounds like you got a firewall that is blocking a lot of outgoing ports with http as one of the exceptions.

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Debian Wheezy Local Git Server With Git Lite Workflow LXer Syndicated Linux News 0 01-20-2013 02:30 PM
Git unable to clone from "remote" to working dir on that server? Jukas Linux - Software 3 08-10-2012 05:31 AM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 03:09 PM
SBo-git - slackbuilds.org on git (with patches for current) ponce Slackware 47 03-12-2011 06:12 AM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration