Error when unzipping a file
Your file has a .zip
name, but is not in zip format. Renaming a file doesn't change its content, and in particular doesn't magically transform it into a different format.
(Alternatively, the same error could happen with an incomplete zip file — but since that Archive Utility worked, this isn't the case.)
Run file user_file_batch1.csv.zip
to see what type of file this is. It's presumably some other type of archive that Archive Utility understands.
user_file_batch1.csv.zip: uuencoded or xxencoded text
Run the following command:
uudecode user_file_batch1.csv.zip
This creates a file whose name is indicated in user_file_batch1.csv.zip
. If you want to pick a different output file name:
uudecode -o user_file_batch1.csv.decoded user_file_batch1.csv.zip
The output file at this stage may, itself, be an archive. (Perhaps it's a zip, in fact.) Run the file
utility again on this file to see what it is. If you choose the automatic file name, it might give a clue.
I had a similar problem when doing unzip archive.zip
, giving me
Archive: archive.zip
warning [archive.zip]: ... extra bytes at beginning or within zipfile
(attempting to process anyway)
error [archive.zip]: start of central directory not found;
zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
Doing file archive.zip
gave me
Zip archive data
Using 7z e archive.zip
worked.
Go to your zip location then unzip by this command
jar xvf yourzipfile.zip