Unzipping large file: bad zipfile offset (local header sig)












3















I am unzipping a file with approximately 3 million single text files - the zip-file itself is around 12 GB in size. It's not multi-part - it's just one large zip file btw. I do not have the original data - all I have is the zipped file which means I cannot try to zip the content again (just so you know).



The problem is that as I unzip, at some point, I get



..
file #1207565: bad zipfile offset (local header sig): 9570252890
file #1207566: bad zipfile offset (local header sig): 9570254437
file #1207567: bad zipfile offset (local header sig): 9570255044
file #1207568: bad zipfile offset (local header sig): 9570256141
file #1207569: bad zipfile offset (local header sig): 9570256786
file #1207570: bad zipfile offset (local header sig): 9570257539
..


This does not seem to affect every subfolder or file respectively in the archive but for a lot of them the process seems to fail.



At this point it's hard for me to guess if the packing or the unpacking is the problem



Are there any workarounds I could try on my side?










share|improve this question


















  • 2





    Suggestion online and via man pages is to use: zip -F original.zip --out fixed.zip and then try to extract fixed.zip as normal...

    – andrew.46
    Apr 17 '18 at 9:10











  • @andrew.46 On it - although I had to "try harder" using -FF in order to make it run at all - what I can see though are warning and things like "skipping this signature .." - I guess that means those files are not going to make it into fixed.zip?

    – displayname
    Apr 17 '18 at 10:22











  • @andrew.46 Okay, I tried it twice - unfortunately this does not work. It ends up with the same error messages. :/

    – displayname
    Apr 17 '18 at 10:28
















3















I am unzipping a file with approximately 3 million single text files - the zip-file itself is around 12 GB in size. It's not multi-part - it's just one large zip file btw. I do not have the original data - all I have is the zipped file which means I cannot try to zip the content again (just so you know).



The problem is that as I unzip, at some point, I get



..
file #1207565: bad zipfile offset (local header sig): 9570252890
file #1207566: bad zipfile offset (local header sig): 9570254437
file #1207567: bad zipfile offset (local header sig): 9570255044
file #1207568: bad zipfile offset (local header sig): 9570256141
file #1207569: bad zipfile offset (local header sig): 9570256786
file #1207570: bad zipfile offset (local header sig): 9570257539
..


This does not seem to affect every subfolder or file respectively in the archive but for a lot of them the process seems to fail.



At this point it's hard for me to guess if the packing or the unpacking is the problem



Are there any workarounds I could try on my side?










share|improve this question


















  • 2





    Suggestion online and via man pages is to use: zip -F original.zip --out fixed.zip and then try to extract fixed.zip as normal...

    – andrew.46
    Apr 17 '18 at 9:10











  • @andrew.46 On it - although I had to "try harder" using -FF in order to make it run at all - what I can see though are warning and things like "skipping this signature .." - I guess that means those files are not going to make it into fixed.zip?

    – displayname
    Apr 17 '18 at 10:22











  • @andrew.46 Okay, I tried it twice - unfortunately this does not work. It ends up with the same error messages. :/

    – displayname
    Apr 17 '18 at 10:28














3












3








3








I am unzipping a file with approximately 3 million single text files - the zip-file itself is around 12 GB in size. It's not multi-part - it's just one large zip file btw. I do not have the original data - all I have is the zipped file which means I cannot try to zip the content again (just so you know).



The problem is that as I unzip, at some point, I get



..
file #1207565: bad zipfile offset (local header sig): 9570252890
file #1207566: bad zipfile offset (local header sig): 9570254437
file #1207567: bad zipfile offset (local header sig): 9570255044
file #1207568: bad zipfile offset (local header sig): 9570256141
file #1207569: bad zipfile offset (local header sig): 9570256786
file #1207570: bad zipfile offset (local header sig): 9570257539
..


This does not seem to affect every subfolder or file respectively in the archive but for a lot of them the process seems to fail.



At this point it's hard for me to guess if the packing or the unpacking is the problem



Are there any workarounds I could try on my side?










share|improve this question














I am unzipping a file with approximately 3 million single text files - the zip-file itself is around 12 GB in size. It's not multi-part - it's just one large zip file btw. I do not have the original data - all I have is the zipped file which means I cannot try to zip the content again (just so you know).



The problem is that as I unzip, at some point, I get



..
file #1207565: bad zipfile offset (local header sig): 9570252890
file #1207566: bad zipfile offset (local header sig): 9570254437
file #1207567: bad zipfile offset (local header sig): 9570255044
file #1207568: bad zipfile offset (local header sig): 9570256141
file #1207569: bad zipfile offset (local header sig): 9570256786
file #1207570: bad zipfile offset (local header sig): 9570257539
..


This does not seem to affect every subfolder or file respectively in the archive but for a lot of them the process seems to fail.



At this point it's hard for me to guess if the packing or the unpacking is the problem



Are there any workarounds I could try on my side?







unzip






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 17 '18 at 8:00









displaynamedisplayname

2131416




2131416








  • 2





    Suggestion online and via man pages is to use: zip -F original.zip --out fixed.zip and then try to extract fixed.zip as normal...

    – andrew.46
    Apr 17 '18 at 9:10











  • @andrew.46 On it - although I had to "try harder" using -FF in order to make it run at all - what I can see though are warning and things like "skipping this signature .." - I guess that means those files are not going to make it into fixed.zip?

    – displayname
    Apr 17 '18 at 10:22











  • @andrew.46 Okay, I tried it twice - unfortunately this does not work. It ends up with the same error messages. :/

    – displayname
    Apr 17 '18 at 10:28














  • 2





    Suggestion online and via man pages is to use: zip -F original.zip --out fixed.zip and then try to extract fixed.zip as normal...

    – andrew.46
    Apr 17 '18 at 9:10











  • @andrew.46 On it - although I had to "try harder" using -FF in order to make it run at all - what I can see though are warning and things like "skipping this signature .." - I guess that means those files are not going to make it into fixed.zip?

    – displayname
    Apr 17 '18 at 10:22











  • @andrew.46 Okay, I tried it twice - unfortunately this does not work. It ends up with the same error messages. :/

    – displayname
    Apr 17 '18 at 10:28








2




2





Suggestion online and via man pages is to use: zip -F original.zip --out fixed.zip and then try to extract fixed.zip as normal...

– andrew.46
Apr 17 '18 at 9:10





Suggestion online and via man pages is to use: zip -F original.zip --out fixed.zip and then try to extract fixed.zip as normal...

– andrew.46
Apr 17 '18 at 9:10













@andrew.46 On it - although I had to "try harder" using -FF in order to make it run at all - what I can see though are warning and things like "skipping this signature .." - I guess that means those files are not going to make it into fixed.zip?

– displayname
Apr 17 '18 at 10:22





@andrew.46 On it - although I had to "try harder" using -FF in order to make it run at all - what I can see though are warning and things like "skipping this signature .." - I guess that means those files are not going to make it into fixed.zip?

– displayname
Apr 17 '18 at 10:22













@andrew.46 Okay, I tried it twice - unfortunately this does not work. It ends up with the same error messages. :/

– displayname
Apr 17 '18 at 10:28





@andrew.46 Okay, I tried it twice - unfortunately this does not work. It ends up with the same error messages. :/

– displayname
Apr 17 '18 at 10:28










1 Answer
1






active

oldest

votes


















0














I ran into the same problem - a huge zip file with a lot of files - and unzip choked trying to unpack it. A possible solution is to use java archiver. Just unpack your stuff with jar xvf file.zip






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1025742%2funzipping-large-file-bad-zipfile-offset-local-header-sig%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I ran into the same problem - a huge zip file with a lot of files - and unzip choked trying to unpack it. A possible solution is to use java archiver. Just unpack your stuff with jar xvf file.zip






    share|improve this answer




























      0














      I ran into the same problem - a huge zip file with a lot of files - and unzip choked trying to unpack it. A possible solution is to use java archiver. Just unpack your stuff with jar xvf file.zip






      share|improve this answer


























        0












        0








        0







        I ran into the same problem - a huge zip file with a lot of files - and unzip choked trying to unpack it. A possible solution is to use java archiver. Just unpack your stuff with jar xvf file.zip






        share|improve this answer













        I ran into the same problem - a huge zip file with a lot of files - and unzip choked trying to unpack it. A possible solution is to use java archiver. Just unpack your stuff with jar xvf file.zip







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 19 '18 at 2:04









        DariaDaria

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1025742%2funzipping-large-file-bad-zipfile-offset-local-header-sig%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido