Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

can't unzip a zip file i downloaded

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
cieknwig
Posts: 4
Joined: 2022-08-01 06:59

can't unzip a zip file i downloaded

#1 Post by cieknwig »

i'm using the google cloud trial and i deployed a compute engine instance, i've been using it completely fine but i can't unzip a zip file. I tried unzip <file>.zip, jar xvf <file>.zip, fastjar xvf <file>.zip, and 7z x <file>.zip. none of them work, i keep getting the same error spit at me when i try to use unzip or p7zip;

Code: Select all

Archive:  <file>.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.
note:  <file>.zip may be a plain executable, not an archive
unzip:  cannot find zipfile directory in one of mods.zip or
        <file>.zip.zip, and cannot find <file>.zip.ZIP, period.
I get nothing when i do jar xvf <file>.zip, but i get this when i do fastjar xvf <file>.zip:

Code: Select all

read: Success
i'm on SMP Debian 5.10.127-1 x86_64 (i think, thats what it says at the top of my ssh)

any help is appreciated, can't find anything online.

the zip file is zipped on windows, tried using a .rar and a .7z file as well.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: can't unzip a zip file i downloaded

#2 Post by sunrat »

I would guess the file is the problem. Debian unzip or p7zip have no problem with standard zip files.
Could you share the download link so someone else could check the file?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

cieknwig
Posts: 4
Joined: 2022-08-01 06:59

Re: can't unzip a zip file i downloaded

#3 Post by cieknwig »

sunrat wrote: 2022-08-01 07:27 I would guess the file is the problem. Debian unzip or p7zip have no problem with standard zip files.
Could you share the download link so someone else could check the file?
here is the original zip:
https://www.curseforge.com/minecraft/mo ... ad/3871784

here is a zip file i made on my windows computer with only the things i needed from the original zip file:
https://anonfiles.com/Paa2E511y3

i tried both

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: can't unzip a zip file i downloaded

#4 Post by 4D696B65 »

The files are OK. I was able to "unzip" both successfully.

cieknwig
Posts: 4
Joined: 2022-08-01 06:59

Re: can't unzip a zip file i downloaded

#5 Post by cieknwig »

4D696B65 wrote: 2022-08-01 08:06 The files are OK. I was able to "unzip" both successfully.
that's weird, any idea as to why I can't?

User avatar
mrjcd
Posts: 67
Joined: 2020-01-25 18:20
Has thanked: 1 time
Been thanked: 6 times

Re: can't unzip a zip file i downloaded

#6 Post by mrjcd »

Downloaded ...double clicked to have 'Archive Manager' do the job.
I had NO problem at all --- I am using:

Code: Select all

mrjcd@daDeb:~$ uname -a
Linux daDeb 5.18.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1 (2022-06-16) x86_64 GNU/Linux

cieknwig
Posts: 4
Joined: 2022-08-01 06:59

Re: can't unzip a zip file i downloaded

#7 Post by cieknwig »

mrjcd wrote: 2022-08-01 16:43 Downloaded ...double clicked to have 'Archive Manager' do the job.
I had NO problem at all --- I am using:

Code: Select all

mrjcd@daDeb:~$ uname -a
Linux daDeb 5.18.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1 (2022-06-16) x86_64 GNU/Linux
do you think it might be a problem with the debian version i'm using?

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: can't unzip a zip file i downloaded

#8 Post by 4D696B65 »

No. Buster, Bookworm, and sid all use the same version of unzip.
I doubt the kernel version matters.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: can't unzip a zip file i downloaded

#9 Post by 4D696B65 »


User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: can't unzip a zip file i downloaded

#10 Post by stevepusser »

Have you tried downloading it again and doing a checksum on the two downloads? Ideally the download site provides a checksum, but that's not always the case. Sometimes zip (and other files) files do get corrupted when downloading.
MX Linux packager and developer

Post Reply