I received a zip file from a bank. I get the following error when I trying to unzip it.
unzip filename.zip
Archive: filename.zip
skipping: SOME_STUFF.pdf need PK compat. v6.1 (can do v4.6)
The file
command returns
Zip archive data
for this file.
There are a fair number of threads containing this error message, but the only concrete suggestions they have is to use 7z x
or 7za x
from the p7zip-full
package. These fail with the error:
Unsupported Method
Sub items Errors: 1
I'm using Debian wheezy amd64. I don't see significant updates of the unzip
or 7za
packages in testing/unstable though.
I'd appreciate suggestions of how to unzip this file, and more generally, what does the error message PK compat. v6.1 (can do v4.6)
mean? For a widely used utility, zip
does not have much documentation available about it. The README in the Debian sources points to http://www.info-zip.org/pub/infozip/ which lists a release dated of 29th April 2009 for UnZip 6.0.
Here is the version output for the unzip
binary on my system.
unzip -v
UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.
Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;
see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.
Compiled with gcc 4.7.2 for Unix (Linux ELF) on Feb 3 2015.
UnZip special compilation options:
ACORN_FTYPE_NFS
COPYRIGHT_CLEAN (PKZIP 0.9x unreducing method not supported)
SET_DIR_ATTRIB
SYMLINKS (symbolic links supported, if RTL and file system permit)
TIMESTAMP
UNIXBACKUP
USE_EF_UT_TIME
USE_UNSHRINK (PKZIP/Zip 1.x unshrinking method supported)
USE_DEFLATE64 (PKZIP 4.x Deflate64(tm) supported)
UNICODE_SUPPORT [wide-chars, char coding: UTF-8] (handle UTF-8 paths)
LARGE_FILE_SUPPORT (large files over 2 GiB supported)
ZIP64_SUPPORT (archives using Zip64 for large files supported)
USE_BZIP2 (PKZIP 4.6+, using bzip2 lib version 1.0.6, 6-Sept-2010)
VMS_TEXT_CONV
WILD_STOP_AT_DIR
[decryption, version 2.11 of 05 Jan 2007]
UnZip and ZipInfo environment options:
UNZIP: [none]
UNZIPOPT: [none]
ZIPINFO: [none]
ZIPINFOOPT: [none]
dpkg reports the package version as 6.0-8+deb7u2
.
The output of zipinfo
is:
zipinfo filename.zip
Archive: filename.zip
Zip file size: 6880 bytes, number of entries: 1
-rw-a-- 6.4 fat 10132 Bx defN 15-Feb-06 16:24 SOME_STUFF.pdf
1 file, 10132 bytes uncompressed, 6568 bytes compressed: 35.2%
p7zip-rar
on Debian in case you get the7z
error that you got.