LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-23-2013, 03:00 AM   #1
linuxgeek8
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
Question File not downloading in linux terminal


Hello,
I have been trying to download files in linux using "wget" command. However, every time i try to download, the connection is timed out. As an example, while trying to download a page from wikipedia, following message appeared.
"#wget en.wikipedia.org/wiki/Base_station
--2013-01-23 14:19:47-- http://en.wikipedia.org/wiki/Base_station
Resolving en.wikipedia.org... 208.80.154.225, 2620:0:861:ed1a::1
Connecting to en.wikipedia.org|208.80.154.225|:80... failed: Connection timed out.
Connecting to en.wikipedia.org|2620:0:861:ed1a::1|:80... failed: Network is unreachable.
"

I don't understand what the problem is??

Last edited by linuxgeek8; 01-23-2013 at 03:02 AM.
 
Old 01-23-2013, 03:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
looks like you're not able to reach it at all. are you proxied? Maybe you need to define an http_proxy variable to go via an intermediate system?
 
Old 01-23-2013, 04:18 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by linuxgeek8 View Post
I don't understand what the problem is??
Can you reach that site with Firefox or whatever web browser you are using?
Can you ping the sites you are trying to use wget to download from? For example, post the output of:
Code:
ping 208.80.154.225
This is the web address you have in your post.

Do you have a software firewall running?

And welcome to the LQ forums!
 
Old 01-23-2013, 04:34 AM   #4
linuxgeek8
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hello Chris,
Thank you for you reply but i am not proxied.

Hello tommcd,
I am trying to download via a terminal. I tried to ping the site before as well and the ping request was successful. As you want me to provide you an output, I tried again and the result was like this:

# ping 208.80.154.225
PING 208.80.154.225 (208.80.154.225) 56(84) bytes of data.
64 bytes from 208.80.154.225: icmp_seq=1 ttl=48 time=276 ms
64 bytes from 208.80.154.225: icmp_seq=2 ttl=48 time=277 ms
64 bytes from 208.80.154.225: icmp_seq=3 ttl=48 time=280 ms
64 bytes from 208.80.154.225: icmp_seq=4 ttl=48 time=280 ms
64 bytes from 208.80.154.225: icmp_seq=5 ttl=48 time=287 ms
64 bytes from 208.80.154.225: icmp_seq=6 ttl=48 time=279 ms
64 bytes from 208.80.154.225: icmp_seq=7 ttl=48 time=278 ms
64 bytes from 208.80.154.225: icmp_seq=8 ttl=48 time=277 ms
64 bytes from 208.80.154.225: icmp_seq=9 ttl=48 time=276 ms

--- 208.80.154.225 ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 8002ms
rtt min/avg/max/mdev = 276.638/279.472/287.397/3.210 ms
 
Old 01-23-2013, 04:36 AM   #5
linuxgeek8
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
and thank you
 
Old 01-23-2013, 05:32 AM   #6
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by linuxgeek8 View Post
I am trying to download via a terminal. I tried to ping the site before as well and the ping request was successful. As you want me to provide you an output, I tried again and the result was like this:

# ping 208.80.154.225
PING 208.80.154.225 (208.80.154.225) 56(84) bytes of data.
64 bytes from 208.80.154.225: icmp_seq=1 ttl=48 time=276 ms
64 bytes from 208.80.154.225: icmp_seq=2 ttl=48 time=277 ms
64 bytes from 208.80.154.225: icmp_seq=3 ttl=48 time=280 ms
64 bytes from 208.80.154.225: icmp_seq=4 ttl=48 time=280 ms
64 bytes from 208.80.154.225: icmp_seq=5 ttl=48 time=287 ms
64 bytes from 208.80.154.225: icmp_seq=6 ttl=48 time=279 ms
64 bytes from 208.80.154.225: icmp_seq=7 ttl=48 time=278 ms
64 bytes from 208.80.154.225: icmp_seq=8 ttl=48 time=277 ms
64 bytes from 208.80.154.225: icmp_seq=9 ttl=48 time=276 ms

--- 208.80.154.225 ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 8002ms
rtt min/avg/max/mdev = 276.638/279.472/287.397/3.210 ms
Your ping times are slower than mine, but this may be because your internet connection is slower than mine.
For comparison, here is my ping times for that IP address:
Code:
bash-4.2$ ping 208.80.154.225
PING 208.80.154.225 (208.80.154.225) 56(84) bytes of data.
64 bytes from 208.80.154.225: icmp_req=1 ttl=54 time=22.1 ms
64 bytes from 208.80.154.225: icmp_req=2 ttl=53 time=18.2 ms
64 bytes from 208.80.154.225: icmp_req=3 ttl=53 time=16.3 ms
...
^C
--- 208.80.154.225 ping statistics ---
21 packets transmitted, 21 received, 0% packet loss, time 20023ms
rtt min/avg/max/mdev = 15.339/23.851/117.661/21.362 ms
Try running the wget command with the -c option and with the IP address in the command like this:
Code:
wget -c 208.80.154.225
Here is what I get when I run the above command:
Code:
bash-4.2$ wget -c 208.80.154.225
--2013-01-23 06:33:39--  http://208.80.154.225/
Connecting to 208.80.154.225:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 875 [text/html]
Saving to: 'index.html'

100%[========================================================================================================>] 875         --.-K/s   in 0s      

2013-01-23 06:33:39 (56.1 MB/s) - 'index.html' saved [875/875]

Last edited by tommcd; 01-23-2013 at 05:34 AM.
 
Old 01-23-2013, 05:42 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
and it still doesn't work *immediately* after wget by ip?? That seems mad!
 
  


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
error in downloading packages using terminal varun_agwl Ubuntu 4 09-19-2009 05:14 PM
downloading from the terminal itself, is it possible? wrapster Programming 8 08-16-2008 02:36 PM

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

All times are GMT -5. The time now is 04:12 AM.

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