unzip always corrupts one file[solved but not fixed]

asked 2018-05-08 11:45:48 +0300

Stedephys gravatar image

updated 2018-05-14 22:40:34 +0300

every time i unzip a file with the unzip command it extracts everything but one file this file always has at least one questionmark instead of a character and has a size of 0 bytes. does anyone know what i am doing wrong or how to fix this?

edit retag flag offensive close delete

Comments

1

It would help if you shared the broken archive file... otherwice no chance to know what's going on.

juiceme ( 2018-05-08 14:47:04 +0300 )edit

i dont think im alowed to. its a music arcive i bought on bandcamp

Stedephys ( 2018-05-08 16:46:49 +0300 )edit
1

Yeah then it's broken and cannot be helped.

If you bought it you can probably request a new copy.

juiceme ( 2018-05-08 17:31:57 +0300 )edit

i can download as many copys as i want but it hapens to all of them. also it now can be played but is stilldisplayed with questionarks and 0 bytes in the file explorrer

Stedephys ( 2018-05-08 23:21:06 +0300 )edit

I assume you have downloaded the archive to some other computer and successfully able to unzip it, without errors, right? Also, when you run the unzip on Sailfish, there is no warning of any kind, regarding e.g. the file being corrupted or unknown zip version or such?

Oh, and BTW does it happen only with that music archive, or did it happen in some other circumstance?

simosagi ( 2018-05-09 13:34:38 +0300 )edit

I have similar issues with bandcamp zips in Ubuntu and Solus. Bandcamp just zips all the files automatically, regardless which or how many characters the songs file name and the album name have. So some zips have questionable content (from viewpoint of a linux unpacker) and are unzipping problematically.

If your Sailfish phone is your only device, you'll have no chance. Otherwise, you should copy the archive to a computer with a different operating system, and try to unzip it there.

Robomike ( 2018-05-11 00:11:55 +0300 )edit

Googling for bandcamp unzipping problems finds this blog post: https://shkspr.mobi/blog/2017/05/fixing-broken-zip-files-from-bandcamp-file-name-too-long/ So is it because the filenames are too long? Then the post offers some suggestions for making a dedicated unzipping script.

simosagi ( 2018-05-11 09:24:24 +0300 )edit

@simosagi i don't know. other archives i have unpacked were mostly rootfs i was trying to chroot into. It worked so i guess it cant have corrupted something too major. on the other hand i was wondering why some stuff didn't work (then again that is true for pretty much everything that that is that janky of a solution(i way trying to run xwayland with plasma mobile)) so yeah i don't know. also i have cp'd the files form my laptop now.

Stedephys ( 2018-05-14 22:29:02 +0300 )edit