tgzファイルが無効な圧縮データを提供する - フォーマット違反

tgzファイルが無効な圧縮データを提供する - フォーマット違反

このファイルをダウンロードしました。

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

md5と確認

ただし、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

ベストアンサー1

主なステップ 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

あなたが言及した特定のファイルに正しいMD5の合計があるようですので、これは奇妙です。

おすすめ記事