tar 1.27: some gz package is getting extracted but some not

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am on tar version 1.27. I have 2 different tar balls of same compression format (*.tar.gz). One is getting extracted but another one is not on same architecture. The error I'm receiving is "Invalid tar magic".



file intltool-0.51.0.tar.gz: gzip compressed data, last modified: Mon Mar 9 01:41:20 2015, max compression, from Unix


I tried with tar -xvf *.tar.gz



Can somebody please suggest some solution.










share|improve this question



















  • 3




    What does the file command say when you run it on the two files, and what command do you use to extract the archives? Please edit your answer and add this information.
    – Kusalananda
    Oct 9 '17 at 10:48














up vote
0
down vote

favorite












I am on tar version 1.27. I have 2 different tar balls of same compression format (*.tar.gz). One is getting extracted but another one is not on same architecture. The error I'm receiving is "Invalid tar magic".



file intltool-0.51.0.tar.gz: gzip compressed data, last modified: Mon Mar 9 01:41:20 2015, max compression, from Unix


I tried with tar -xvf *.tar.gz



Can somebody please suggest some solution.










share|improve this question



















  • 3




    What does the file command say when you run it on the two files, and what command do you use to extract the archives? Please edit your answer and add this information.
    – Kusalananda
    Oct 9 '17 at 10:48












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am on tar version 1.27. I have 2 different tar balls of same compression format (*.tar.gz). One is getting extracted but another one is not on same architecture. The error I'm receiving is "Invalid tar magic".



file intltool-0.51.0.tar.gz: gzip compressed data, last modified: Mon Mar 9 01:41:20 2015, max compression, from Unix


I tried with tar -xvf *.tar.gz



Can somebody please suggest some solution.










share|improve this question















I am on tar version 1.27. I have 2 different tar balls of same compression format (*.tar.gz). One is getting extracted but another one is not on same architecture. The error I'm receiving is "Invalid tar magic".



file intltool-0.51.0.tar.gz: gzip compressed data, last modified: Mon Mar 9 01:41:20 2015, max compression, from Unix


I tried with tar -xvf *.tar.gz



Can somebody please suggest some solution.







linux tar embedded






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 9 '17 at 12:39









Philippos

5,93211546




5,93211546










asked Oct 9 '17 at 10:45









user254729

1




1







  • 3




    What does the file command say when you run it on the two files, and what command do you use to extract the archives? Please edit your answer and add this information.
    – Kusalananda
    Oct 9 '17 at 10:48












  • 3




    What does the file command say when you run it on the two files, and what command do you use to extract the archives? Please edit your answer and add this information.
    – Kusalananda
    Oct 9 '17 at 10:48







3




3




What does the file command say when you run it on the two files, and what command do you use to extract the archives? Please edit your answer and add this information.
– Kusalananda
Oct 9 '17 at 10:48




What does the file command say when you run it on the two files, and what command do you use to extract the archives? Please edit your answer and add this information.
– Kusalananda
Oct 9 '17 at 10:48










1 Answer
1






active

oldest

votes

















up vote
1
down vote













I can't reproduce problem, however I am using tar 1.28.




  1. try to explictly add -z flag e.g.



    tar xzf fil1.tar.gz



  2. if both tar are on same directory, do not use star (*)



    tar xzf *.tar.gz
    tar: t2.tar.gz: Not found in archive
    tar: Exiting with failure status due to previous errors






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f396982%2ftar-1-27-some-gz-package-is-getting-extracted-but-some-not%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    I can't reproduce problem, however I am using tar 1.28.




    1. try to explictly add -z flag e.g.



      tar xzf fil1.tar.gz



    2. if both tar are on same directory, do not use star (*)



      tar xzf *.tar.gz
      tar: t2.tar.gz: Not found in archive
      tar: Exiting with failure status due to previous errors






    share|improve this answer
























      up vote
      1
      down vote













      I can't reproduce problem, however I am using tar 1.28.




      1. try to explictly add -z flag e.g.



        tar xzf fil1.tar.gz



      2. if both tar are on same directory, do not use star (*)



        tar xzf *.tar.gz
        tar: t2.tar.gz: Not found in archive
        tar: Exiting with failure status due to previous errors






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        I can't reproduce problem, however I am using tar 1.28.




        1. try to explictly add -z flag e.g.



          tar xzf fil1.tar.gz



        2. if both tar are on same directory, do not use star (*)



          tar xzf *.tar.gz
          tar: t2.tar.gz: Not found in archive
          tar: Exiting with failure status due to previous errors






        share|improve this answer












        I can't reproduce problem, however I am using tar 1.28.




        1. try to explictly add -z flag e.g.



          tar xzf fil1.tar.gz



        2. if both tar are on same directory, do not use star (*)



          tar xzf *.tar.gz
          tar: t2.tar.gz: Not found in archive
          tar: Exiting with failure status due to previous errors







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 9 '17 at 13:18









        Archemar

        19.1k93366




        19.1k93366



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f396982%2ftar-1-27-some-gz-package-is-getting-extracted-but-some-not%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?