unzip will not open 256 AES zip files

Bug #220654 reported by DanB
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
unzip (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: file-roller

Winzip and many other zip programs can now produce zip files that are protected by 256 AES encryption. Unzip in ubuntu cannot handle these zips. The files within the zips are shown fine but when you try and extract the following error occurs:

skipping: Test.txt unsupported compression method 99

I believe this is because "unzip" is used to extract the archive. This is the output from "unzip":
dbrewer@HCC122J:~/Desktop$ unzip Test.zip
Archive: Test.zip
   skipping: Test.txt unsupported compression method 99

If "7z" is used it works fine:
dbrewer@HCC122J:~/Desktop$ 7z x Test.zip

7-Zip 4.51 beta Copyright (c) 1999-2007 Igor Pavlov 2007-07-25
p7zip Version 4.51 (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)

Processing archive: Test.zip

Extracting Test.txt
Enter password (will not be echoed) :

Everything is Ok

I attach an example of this kind of file. The password is "monkey" (no quotes).

Note peazip also can handle this.

Revision history for this message
DanB (dan-signup) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

That's a unzip limitation not an file-roller one. The other part of the report (use 7z instead) is a known issue, thanks.

Changed in file-roller:
status: New → Invalid
Revision history for this message
DanB (dan-signup) wrote :

File-roller should open these files, hence it is a file-roller problem in my opinion. File-roller is a frontend to these various other utilities so I do not see why it can't be changed to use 7z instead of unzip, seeing as it uses 7z anyway for 7z files. This would solve the problem. 256 AES zips are being increasingly used in a corporate environment including mine, so I feel this issue is important.

As unzip hasn't been updated since 2005 (according to the changelog) it looks like this facility will not be included anytime soon, so an alternative approach needs to be taken.

Revision history for this message
Phil Wiggins (phil-wiggins) wrote :

Installation of p7zip-full and p7zip-rar packages in Ubuntu8.10 resolves this issue.

Recommend closure.

Cheers,

-Phil

Revision history for this message
James Lewis (james-fsck) wrote :

I would say that any normal user would just /assume/ that these files were not support and revert to Windows for this task... I found this bug after doing just that in Oneiric. I don't think it's reasonable to close it just becuase you can install a different backend and have it work... it may not be a bug in file-roller (other than that it does not advise the user of options), but perhaps in the distribution planning etc.

Clearly closing this bug without addressing it has lead to the problem being present for 2 full cycles of LTS, and AES zip files are now much more common.

Perhaps this can be moved to papercuts?

Changed in file-roller (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
TrombaMarina (glen-organicdesign) wrote :

AES-256 encrypted zip files are the only reason I use 7z from the command line instead of File Roller. File roller should at least tell you what encryption it is using. The original .zip encryption is a joke by today's standards. I had to install 7z just to figure out what encryption file-roller/zip was actually using (AES-128 on Ubuntu 12.04).

Here is a short script for running 7z with AES-256 without typing your password on the command line (and thus entering it into the history):

read -s -p "Please enter a password: " backup_pass
backup_pass="'"$backup_pass"'"

7z a -tzip -p$password -mem=AES256 destFile.zip folderOrFileName

unset backup_pass

Revision history for this message
TrombaMarina (glen-organicdesign) wrote :

Oops. $password should be $backup_pass in that example. I did test it and it otherwise works as far as I can tell. Hope that helps.

Revision history for this message
Olivier Febwin (febcrash) wrote :

up!

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in file-roller (Ubuntu):
importance: Undecided → Low
penalvch (penalvch)
summary: - file-roller will not open 256 AES zip files
+ unzip will not open 256 AES zip files
description: updated
affects: file-roller (Ubuntu) → unzip (Ubuntu)
Changed in unzip (Ubuntu):
status: Confirmed → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unzip (Ubuntu):
status: New → Confirmed
Revision history for this message
Kakurady Drakenar (kakurady) wrote :

From my perspective as a user, the problem is that file-roller won't open encrypted zip archives, without telling me why.

Installing p7zip-full solves that problem. But again, file-roller doesn't tell me that's a solution.

So would the right response here being
- add p7zip-full as a dependency of the file-roller package?
- change file-roller so it requests installing p7zip-full?
- add AES decryption to unzip, which hasn't been updated in 7 years?

Perhaps this bug should be changed back to affecting file-roller, or separate bugs filed against file-roller for 1 and 2.

Revision history for this message
Zurd (zurd3) wrote :

I just had the same problem.

Making p7zip-full a dependency of file-roller would be a very easy solution.

Revision history for this message
psl (slansky) wrote :

Ubuntu 18.04.4 (Linux Mint 19.3)
unzip 6.0-21ubuntu1.1

This issue was not fixed yet. :-(

This encrypted zip archive cannot be decompressed with unzip in Linux:

$ unzip -lv invoices.zip
Archive: invoices.zip
 Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
  364368 Unk:099 297349 18% 2021-07-14 11:43 a42572b4 04.pdf
  386845 Unk:099 323610 16% 2021-07-14 11:42 22c01737 01.pdf
  444152 Unk:099 366972 17% 2021-07-14 11:42 9af8d121 02.pdf
  349956 Unk:099 285237 19% 2021-07-14 11:43 a3a16517 03.pdf
-------- ------- --- -------
 1545321 1273168 18% 4 files

$ unzip invoices.zip
Archive: invoices.zip
   skipping: 04.pdf unsupported compression method 99
   skipping: 01.pdf unsupported compression method 99
   skipping: 02.pdf unsupported compression method 99
   skipping: 03.pdf unsupported compression method 99

I used 7z (7z x invices.zip) and I was able to extract data from archive.

Revision history for this message
Dominik Viererbe (dviererbe) wrote :

Still present in
- Ubuntu 22.04 LTS (Jammy Jellyfish)
- Ubuntu 22.10 (Kinetic Kudu)
- Ubuntu 23.04 (Lunar Lobster)
- Ubuntu 23.10 (Mantic Minotaur)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.