Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

tar error message: "stdin: not in gzip format"

Writer Matthew Harrington

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 ""
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?

1 Answer

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 ""

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy