You are not logged in.

#1 2022-03-27 06:34

rafaelramos
Member
From: Brazil
Registered: 2016-07-19
Posts: 146

Error unzipping ZIP file in Q4OS Ark

A catastrophic issue has arisen today while using Q4OS...

I have some larges ZIP backup files generated on Windows with WinRAR with no compression ratio ("Archive Only" option), which are 100% of their original sizes.

Integrity test and Unzip OK in WinRAR on Windows.

Integrity Test and unpacking OK in Xubuntu's Default File Unzip Manager (a Ubuntu variation distro).

BUT IN Q4OS ARK: ERROR!

????

I do not understand...

Offline

#2 2022-03-27 09:25

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 519

Re: Error unzipping ZIP file in Q4OS Ark

I googled with "Ark unzip error" and I found this page. It seems that disabling libzip in Ark settings solves the issue (see Comment 1). An explanation is that the issue is in libzip and disabling it will force Ark to use another available library (e.g. p7zip).
I didn't try but I hope this will help.


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

#3 2022-03-27 09:42

rafaelramos
Member
From: Brazil
Registered: 2016-07-19
Posts: 146

Re: Error unzipping ZIP file in Q4OS Ark

hello hchiper

I didn't find any option in the Ark settings to disable libzip...

And I checked in Synaptic Package Manager and apparently the libzip library (libzip4 1.7.3-1) is not installed on the system...

Offline

#4 2022-03-27 10:14

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 519

Re: Error unzipping ZIP file in Q4OS Ark

rafaelramos wrote:

I didn't find any option in the Ark settings to disable libzip...

In the French version I'm using: from the main menu > Configuration > Configurer Ark... then choose external module (see screenshot attached).

rafaelramos wrote:

And I checked in Synaptic Package Manager and apparently the libzip library (libzip4 1.7.3-1) is not installed on the system...

You can also check in the console (or terminal) type

$ apt list libzip*
$ apt list p7zip*

If neither libzip nor p7zip is installed ("[installed]" written at the end of the line), then install at least one of them:

$ sudo apt install libzip4
$ sudo apt install p7zip

Attachments:
png Screenshot_20220327_110021.png, Size: 68.05 KiB, Downloads: 268

Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

#5 2022-03-27 10:45

rafaelramos
Member
From: Brazil
Registered: 2016-07-19
Posts: 146

Re: Error unzipping ZIP file in Q4OS Ark

Here is the terminal output for the commands you suggested.

Note that libzip is not installed. Should I install it, taking into account that it might be the focus of the problem?

rafael@q4os-desktop:~$ apt list libzip*
Listing... Pronto
libzip-dev/stable 1.7.3-1 amd64
libzip-ocaml-dev/stable 1.10-1+b1 amd64
libzip-ocaml/stable 1.10-1+b1 amd64
libzip4/stable 1.7.3-1 amd64
libzip4j-java/stable 2.6.4-1 all
libzipios++-dev/stable 0.1.5.9+cvs.2007.04.28-11 amd64
libzipios++-doc/stable 0.1.5.9+cvs.2007.04.28-11 all
libzipios++0v5/stable 0.1.5.9+cvs.2007.04.28-11 amd64

rafael@q4os-desktop:~$ apt list p7zip*
Listing... Pronto
p7zip-full/stable,now 16.02+dfsg-8 amd64 [installed,automatic]
p7zip-rar/stable 16.02-3 amd64
p7zip/stable,now 16.02+dfsg-8 amd64 [installed,automatic]
rafael@q4os-desktop:~$

I attached a print of my Ark, where the option of "External Modules" does not appear as in yours...


Attachments:
png ark.png, Size: 23.59 KiB, Downloads: 256

Offline

#6 2022-03-27 11:12

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 519

Re: Error unzipping ZIP file in Q4OS Ark

Your screenshot of Ark settings looks very different of mine and unluckily doesn't show the modules option (3rd choice in the left column in my screenshot).
What is your Ark version (mine is 20.12.2)?

Since p7zip is installed, you should first go to the modules display and check p7zip is present and enabled.
If it is present and disabled, then enable it and try again to unzip your file.
If it doesn't work, you might try to install libzip:

$ sudo apt install libzip4

and check it is present in the list and enabled (it might require to close and restart Ark).


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

#7 2022-03-27 12:35

rafaelramos
Member
From: Brazil
Registered: 2016-07-19
Posts: 146

Re: Error unzipping ZIP file in Q4OS Ark

Gotcha! Problem solved!!!

It was a ridiculous thing that was happening...

So, I use Q4OS 4.7 Gemini Trinity with XPQ4 theme... the Ark version by default is ark-trinity 14.0.1... I tried deleting that native version and installing pure ark version 20.12.2 but it didn't work... the Ark just wouldn't start.

I went back to Ark Trinity and tried to install libzip4... it didn't work either...

So I decided to go to the terminal and test the zip libraries with the file integrity test commands...

Tested:

unzip -t FILE.ZIP
gzip -t FILE.ZIP
p7zip - t FILE.ZIP
zip -t FILE.ZIP

And precisely the last command told me what the problem was... it warned that one of the files inside the ZIP contained wrong or invalid character in the name, which could be the cause of the problem. Although I have several large ZIP files archived without ratio compression, I was only testing with one in particular (about 1GB, the most important ZIP file of my backups). And it was precisely this one that was causing the reported problem, and I ended up "assuming" that it was with everyone...

So I opened the ZIP file in WinRAR on Windows, deleted the problematic file with the invalid character in the ZIP file, and then I tested it in Ark and it worked perfectly! smile

Curious how this file with the invalid name did not generate any problems with WinRAR and with the Xubuntu compressed file manager... Let this serve as a lesson to pay more attention to file names from now on.

Thank you for your support in resolving the issue!

Greetings!

Last edited by rafaelramos (2022-03-27 12:36)

Offline

#8 2022-03-27 13:41

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 519

Re: Error unzipping ZIP file in Q4OS Ark

Happy you could resolve the issue.


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

#9 2023-09-01 15:34

naranja
Member
Registered: 2023-09-01
Posts: 38

Re: Error unzipping ZIP file in Q4OS Ark

Hi. I'm trying to enable p7zip app because I have already I get on my new Q4os linux. Please, tell me the steps to I can use it. Thanks.

Offline

#10 2023-09-01 15:58

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 519

Re: Error unzipping ZIP file in Q4OS Ark

In ark menu:
Configuration > Configure Ark... > External modules
check P7zip


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

Board footer

Powered by FluxBB