解压压缩包失败

posted
read
60 words · 1 min
tags
#linux
contents

device and version

Terminal window
❯ fastfetch
OS: Arch Linux x86_64
Kernel: Linux 6.12.9-arch1-1
Shell: zsh 5.9
Locale: en_US.UTF-8
#version
❯ unzip -v
UnZip 6.00 of 20 April 2009
# file
❯ file NT2_GamePatch.zip
NT2_GamePatch.zip: Zip archive data, at least v2.1 to extract, compression method=deflate64

解压失败

Terminal window
❯ unzip NT2_GamePatch.zip
Archive: NT2_GamePatch.zip
warning [NT2_GamePatch.zip]: 808664702 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [NT2_GamePatch.zip]: start of central directory not found;
zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)

It appears to be corrupt or improperly formatted. Maybe something is wrong with transferring.

尝试修复

Terminal window
❯ zip -FF NT2_GamePatch.zip --out repaired.zip

再次解压,成功

Terminal window
❯ unzip repaired.zip -d ./temp
Archive: repaired.zip
inflating: ./temp/movie/b4n0m8s3t6.dat
inflating: ./temp/movie/c8r3x6v1p0.dat
# ...

save your time

使用7z直接解压,成功

Terminal window
❯ 7z x NT2_GamePatch.zip -oNT2

7z usage

Terminal window
E[x]tract an archive to [o]utput directory:
7z x archive.7z -ooutput

可能有用

unzip解压缩中文名乱码问题