Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm having difficulty with tar on a headless Ubuntu Server 12:

ubuntu@domU-12-31-39-02-C0-98:~$ wget -o dropbox.tar.gz "http://www.dropbox.com/download?plat=lnx.x86"
ubuntu@domU-12-31-39-02-C0-98:~$ tar -xzvf dropbox.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

If I download the file on Windows, I can unpack it with 7-zip just fine. What am I doing wrong with tar?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The -o option of wget specifies where to put the log file.

You'll find that your dropbox.tar.gz is a plain text file containing diagnostic messages from wget.

Try this:

wget -O dropbox.tar.gz "http://www.dropbox.com/download?plat=lnx.x86"
share|improve this answer

Your Answer

 
discard

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.