tgz 文件提供无效的压缩数据——违反格式

elb*_*rna 2 tar gzip

我已经下载了这个文件

http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-HPUX11iv3-aCC.tgz
https://ssl.icu-project.org/files/icu4c/55.1/icu4c-bin-55_1.md5
Run Code Online (Sandbox Code Playgroud)

md5sum 好的

但是在 linux 和 hpux 11.31 上给我这个错误,我已经输入了各种命令

gunzip icu4c-55_1-HPUX11iv3-aCC.tgz 

gunzip: icu4c-55_1-HPUX11iv3-aCC.tgz: invalid compressed data--format violated

gunzip -d < icu4c-55_1-HPUX11iv3-aCC.tgz| tar xvf -

gzip: stdin: invalid compressed data--format violated
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

tar -tvf icu4c-55_1-HPUX11iv3-aCC.tgz 

gzip: stdin: invalid compressed data--format violated
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Run Code Online (Sandbox Code Playgroud)

dha*_*hag 7

在强调的步骤 https://support.pivotal.io/hc/en-us/articles/202392488-gpdbrestore-gp-restore-fails-with-gzip-stdin-invalid-compressed-data-format-violated- 固定它为了我:

wget http://www.gzip.org/fixgz.zip
unzip fixgz.zip
gcc -o fixgz fixgz.c
fixgz <corrupted_gzip_backup_file>.gz <fixed_gzip_backup_file>.gz
Run Code Online (Sandbox Code Playgroud)

这很奇怪,因为您提到的特定文件似乎具有正确的 MD5 总和。