解压缩返回“不支持的压缩方法14”


10

我最近从一个政府机构下载了许多GIS数据文件到文件服务器,并且需要通过命令行将它们全部解压缩。但是,unzip filename.zip返回“不支持的压缩方法14”。这是什么意思?如何提取文件?

Answers:


15

这些文件是使用LZMA算法(可能使用WinZip)压缩的。该unzip命令不支持LZMA存档。我发现我可以改用7z提取这些文件,如下所示:

  1. 安装p7zip(从源代码或程序包管理器)
  2. 7z x filename.zip

WinZip特定的压缩方法代码在此处提供
jscott 2011年

1

如果仍然收到不支持的格式警告,则可以安装p7zip-full软件包。

p7zip-full提供7z和7za,它们支持更多压缩格式。例如,提取文件zipfile.zip

  1. 须藤apt-get install p7zip-full
  2. 7za e zipfile.zip
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.