Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I am trying to use wget to download the Raspbian image for the Raspberry Pi (

It starts downloading fine but then finished after a second without error but clearly not finished and leaves a tiny file instead of the full one:

kemra102@iacon:~/Downloads$ wget
--2012-08-13 20:26:57--
Resolving (
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: [following]
--2012-08-13 20:26:57--
Reusing existing connection to
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `'

    [ <=>                                                                                                                                             ] 17,012      --.-K/s   in 0.04s   

2012-08-13 20:26:57 (373 KB/s) - `' saved [17012]

kemra102@iacon:~/Downloads$ ls -l 
-rw-rw-r-- 1 kemra102 kemra102 17012 Aug 13 20:26

I cannot find anything anywhere on the net to indicate what could possible be causing the issue.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

Try looking at the file you've received:

$ wget
-- snip --
2012-08-13 16:31:23 (9.78 MB/s) - `' saved [6501]

$ file HTML document text

We can see that we're actually receiving an HTML document. This is further evidenced by the line in your output: Length: unspecified [text/html]

Note also that when you invoke wget, the server immediately redirects to which is indeed a web page.

Try opening either of those links in your browser:

When you do, you get a download information page. There's a direct link to the download on that page. Pass that link to wget and you'll be set.

share|improve this answer
Thanks for the explanation I very much needed it! – kemra102 Aug 13 '12 at 19:47

You're wget is being redirected (HTTP status 301): Use the direct link instead.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.