linux上 用unzip命令解压带密码保护的 zip 文件报错 unsupported compression method 99

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

....

这样就解决了

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值