Support » Installing WordPress » .tar.gz does not uncompress on shell

  • Resolved yokima

    (@yokima)


    I downloaded the 2.3 version in .tar.gz and ran tar as usual, but I get an error:

    krclaorg@krcla.org [~/public_html]# wget http://wordpress.org/latest.tar.gz
    –07:50:42– http://wordpress.org/latest.tar.gz
    => `latest.tar.gz’
    Resolving wordpress.org… 72.233.56.139, 72.233.56.138
    Connecting to wordpress.org|72.233.56.139|:80… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: unspecified [application/octet-stream]
    [ <=> ] 3,502,080 2.92M/s
    07:50:43 (2.91 MB/s) – `latest.tar.gz’ saved [3502080]
    krclaorg@krcla.org [~/public_html]# tar -zxvf latest.tar.gz
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error exit delayed from previous errors
    krclaorg@krcla.org [~/public_html]#

    Why is it? This is a BlueHost PHP5 & HighCPU server.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    wget may have ungzipped the file for you. It does that sometimes. Try renaming it to latest.tar and then opening it.

    Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    Otto,

    Not to add fuel to the fire, but I just used telnet on port 80 to request /latest.tar.gz.

    The file latest.tar.gz is not gziped. I just did this command on my server and did this:

    telnet wordpress.org 80

    The I typed in

    GET /latest.tar.gz HTTP/1.0

    And hit enter twice. I got back uncompressed text. Here is a sample of what I got:

    if ( !defined('TEST_COOKIE') )
            define('TEST_COOKIE', 'wordpress_test_cookie');
    if ( !defined('COOKIEPATH') )
            define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_option('home') . '/' ) );

    wget may unzip (that would be news to me) but no way telnet will un-gzip a data stream. The file is not gziped, just tar’ed.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Well, I fail to see why, when I click the link above in Firefox, then save the resulting file, I get a gzipped file. Firefox certainly isn’t *adding* gzip compression to it for me.

    The file is actually gzipped. There’s no other way for me to get it that way if it was not. I redownloaded it and opened it in a hex editor just now, it’s definitely compressed data.

    Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    Otto, dunno, it may be as someone else commented that some of the servers are not equal. The telnet test is pretty basic (talk about your no frills web client).

    I’m only raising the point because each time I download the file I get the tar file less the gzip compression. For me that’s no big deal, for some users it will look like a corrupted tar.gz file.

    Hello,

    I am on DreamHost.

    Before v. 2.3 I was always using first:
    wget to get the latest.tar.gz, and then:
    tar -xzvf latest.tar.gz to uncompress the file.

    Now I get the same error:

    tar -xzvf latest.tar.gz
    
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error exit delayed from previous errors

    OK, I am not so good in servers. I guess, something has changed from 2.2.x to 2.3. When I run the wget command, here’s what I get:

    --23:52:32--  http://wordpress.org/latest.tar.gz
               =>

    latest.tar.gz’
    Resolving wordpress.org… 72.233.56.139, 72.233.56.138
    Connecting to wordpress.org[72.233.56.139]:80… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: unspecified [application/octet-stream]

    [ <=> ] 3,502,080 178.58K/s

    23:52:36 (178.49 KB/s) – latest.tar.gz' saved [3502080]

    After that I try to tar -xzvf and cannot…

    I have SSH access to another hosting of mine, I tried there, same error.

    What can I do? I mean, how can I un-tar the file, if it’s not gzipped?

    (later) OK, I am stupid sometimes! 😀

    tar -xvf latest.tar.gz

    …does the trick:)

    I simply removed the ‘-z’ flag from the command 🙂

    Thanks for the help and routing me in the right direction:)

    Anyway, I wonder why before it was wget, then tar -xzvf and now it’s wget and then tar -xvf?…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘.tar.gz does not uncompress on shell’ is closed to new replies.