Corrupt archive?



  • Hi,

    I have PA 16.03.01 and I came across a tarball it could not open http://www.catb.org/~esr/jargon/jargon-4.4.7.tar.gz. I wonder if there is any way to check if the problem lies with PA or the archive itself?

    Thanks

    DrT


  • conexware

    without downloading it, try renaming it to tar (no .gz) and see if it works?
    edit: it does… server misconfiguration most likely, downloads .tar as .tar.gz



  • Hi,

    I had already downloaded it. So I renamed it as you suggested and could open the archive :D.

    Could you take the time to explain what is going on here? I would really appreciate it.

    Thanks

    DrT



  • Not sure if my explanation will suffice, but here goes…

    tar puts multiple files into a single (tar) file.

    gzip compresses one file (only).

    So if the files don’t have the correct extension the program used to open it will try and fail simply because it tries to open it based on the extension. 😉


  • conexware

    @skypx:

    Not sure if my explanation will suffice, but here goes…

    tar puts multiple files into a single (tar) file.

    gzip compresses one file (only).

    So if the files don’t have the correct extension the program used to open it will try and fail simply because it tries to open it based on the extension. 😉

    thats a good explanation… tar has no compression but can store multiple files.
    So several compression formats can be used to compress tar files (gz, bz2, xz).

    When server is not configured properly, it gives you wrong extension. File on server could very much be .tar but server gives it to browser as tar.gz and the issue is there.


 

5
Online

9.8k
Users

6.0k
Topics

36.6k
Posts

Copyright © 1998-2018 ConeXware, Inc.
All rights reserved. Privacy Policy