ubuntu中解压.tgz出错的解决方法

  在UBUNTU中解压TGZ格式的文档出现一下错误:

  gzip: stdin: decompression OK, trailing garbage ignored
  tar: Child returned status 2
  tar: Error is not recoverable: exiting now


公司一个高手解决方法如下: 

       The source code package is delivered in .tgz format. The command "tar xvfz <package_name.tgz" does not work, but this will:

  1. Unzip the .tgz files into .tar. I use 7zip on Windows to do it. To do it in Ubuntu:
    gzip -d file.tgz

  2. Extracr the tar file:
    tar xvf file.tar

   在此做个记录,以备后面用到。


你可能感兴趣的:(windows,command,ubuntu,File,文档,7zip)