LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-02-2013, 09:00 AM   #1
vijabaskar
LQ Newbie
 
Registered: May 2013
Posts: 4

Rep: Reputation: Disabled
Reg; wget not working linux


Hi Guys,
In my fedora installed machine wget command is not working. While trying to get a file from an URL http://downloads.asterisk.org/pub/te...-1.4.22.tar.gz using wget command i am getting the following error HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. . I tried uninstalling and re-installing the wget package. But still the problem exist.

Could someone please help me regarding this.

Thanks
Vijay

Last edited by vijabaskar; 05-02-2013 at 09:02 AM.
 
Old 05-02-2013, 09:11 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Are you sure this is a wget problem?

Have you tried to download it using your browser and does that work? (Index of /pub/telephony/sounds/releases)

The site mentioned is up and running (I tried using both wget and browser).
 
Old 05-02-2013, 09:18 AM   #3
vijabaskar
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Reg; wget not working linux

Thanks for the reply druuna,
I am not sure.
But i can download the file using browser. I face problem while doing through wget command.
Actually i am installing asterisk PBX in my fedora machine and in asterisk setup they are using wget command to download and install all the supporting files there comes this issue.

Thanks
Vijay
 
Old 05-02-2013, 09:36 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by vijabaskar View Post
Thanks for the reply druuna,
I am not sure.
But i can download the file using browser. I face problem while doing through wget command.
Actually i am installing asterisk PBX in my fedora machine and in asterisk setup they are using wget command to download and install all the supporting files there comes this issue.
Are you talking about automated installation/scripts using wget that fail?

Have you tried the wget command from the command line and did that work?
Code:
# from the command line:
wget http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-gsm-1.4.22.tar.gz

# and to make sure it isn't the asterisk site that's given problems:
wget http://www.tldp.org/LDP/Bash-Beginners-Guide/Bash-Beginners-Guide.txt.gz
If this is not automated then it really doesn't matter how you get the files, using a browser would do. This way you can go on with the installation and worry about the possible problems with the wget command later on.
 
Old 05-02-2013, 10:06 PM   #5
vijabaskar
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Reg; wget not working linux

Are you talking about automated installation/scripts using wget that fail?
Yes exactly, druuna. i am using automated script for installing asterisk pbx.
Have you tried the wget command from the command line and did that work?
Yes, i tried it gives the same error as i mentioned in my first post "--2013-05-03 08:29:07-- (try: 3) http://downloads.asterisk.org/pub/te...-1.4.22.tar.gz
Connecting to downloads.asterisk.org|76.164.171.238|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying."
 
Old 05-03-2013, 01:43 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You haven't answered this one yet:
Code:
# and to make sure it isn't the asterisk site that's given problems:
wget http://www.tldp.org/LDP/Bash-Beginners-Guide/Bash-Beginners-Guide.txt.gz
Or put differently: Does wget work with anything else then the asterisk site?

You do mention that you are able to download the asterisk file using your browser. Maybe you need to add proxy settings when using wget?
Code:
wget --proxy-user=username --proxy-password=password http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-gsm-1.4.22.tar.gz
BTW: If I look at Fedora 17/18/19 I do see that asterisk is part of the repo, maybe you can use that instead.
 
Old 05-03-2013, 02:37 AM   #7
vijabaskar
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Reg; wget not working linux

sorry druuna for not replying to that. Here is the response for the attached sample code.
I executed the below command and got the response as follows.
wget http://www.tldp.org/LDP/Bash-Beginne...s-Guide.txt.gz
Response:
--2013-05-03 12:58:05-- (try: 2) http://www.tldp.org/LDP/Bash-Beginne...s-Guide.txt.gz
Connecting to www.tldp.org|152.19.134.41|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

i tried pinging google.com it worked. But while trying sites like microsoft,asterisk etc.. they are throwing the above mentioned error.

Regarding the second piece of code. I tried but have a doubt on what to use the username and password is it system username/password?
i tried system username/password still the problem exists.

One more correction regarding Os, i am using "CentOS release 6.4 (Final)" i tried installing a newer version will solve my problem but still the problem exist.

Thanks
Vijay
 
  


Reply



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
Testing of clamd service is working or not - reg AjithJ Linux - Server 1 11-22-2011 04:53 AM
wget not working ravibhure Linux - Newbie 4 06-28-2010 01:52 PM
Windows: Which program can track the reg updates at software install and make a reg? frenchn00b General 5 11-20-2008 04:26 PM
wget not working! but "man wget is" ??? wrapster Solaris / OpenSolaris 5 07-30-2008 03:00 AM
Nice surprise Kaffeine plays Reg 1 and Reg 2 disks 1kyle SUSE / openSUSE 1 10-10-2005 04:47 PM

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

All times are GMT -5. The time now is 10:59 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
Open Source Consulting | Domain Registration