How to troubleshoot if a zip file is valid or if it is big file size to be unzipped

zip

I am trying to unzip a file with the size of 2GB
I am getting the following error :

unzip CLTE_C_08.zip
Archive: CLTE_C_08.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of CLTE_C_08.zip or
CLTE_C_08.zip.zip, and cannot find CLTE_C_08.zip.ZIP, period.

After some googling, some people say that this error is because the file is too big, others say because file is corrupt, others say that it could be a not unix archive.

So my question , how to find out if file is valid archive file on my Centos and what is the command/trick to uncompress big files ( if any )

Thanks in advance 🙂


I issued the command file CLTE_C_08.zip , it gives the following :

file CLTE_C_08.zip

CLTE_C_08.zip: data

I tried viewing the file info on my own computer and i got this :

file avatarminis.zip

avatarminis.zip: Zip archive data, at least v1.0 to extract

Does the above difference mean that CLTE_C_08.zip is not a zip file to start with ?

Best Answer

Two things that I can see might be a problem.
The first question is are the operating systems the same? (UNIX / MS / MAC) all use different EOF characters. I haven't run into this on ZIP files but plenty of times on others.
The second is how old is the zip code / executable? The C / C++ direct file access uses a long integer to get it's file position. The maximum file size for this is 2GB.

Related Question