1.问题:
Linux上用 unzip 命令解压带密码保护的 zip 文件报错 unsupported compression method 99
2.解决办法:
mac自带的解压工具,无法解密加密的文件。不要安装一个7zip的软件,
ubuntu上, apt install p7zip-full
mac上 brew install p7zip
然后使用命令 7z x file.zip
root@master1:/data/xlj# apt install p7zip-full
root@master1:/data/xlj# 7z x case.zip
-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_HK.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs Intel(R) Core(TM) i5-10500 CPU @ 3.10GHS-NI)
Scanning the drive for archives:
1 file, 90880750 bytes (87 MiB)
Enter password (will not be echoed): ## 这里是输入压缩文件的密码
Everything is Ok
Folders: 2
Files: 20
Size: 90904824
Compressed: 90880750
....
这样就解决了