Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Ubuntu 

Linux SSH Unzipping Issue

Command: http://prnt.sc/buxh17
Return: http://prntscr.com/buxisg

The zip DEFINITELY exists in that directory.
Resident Writer for MyGamer.Com and Horrify.Net
CD into that directory and try again.
(Jul 19, 2016 12:23 PM)Figma Wrote:  CD into that directory and try again.

Still no joy there, man! This has me stumped. TY anyway.
Resident Writer for MyGamer.Com and Horrify.Net
This is an indication of one of two things.

1. The zip is corrupt. Try re-uploading it to your server and unzipping. If that doesn't work, it's most likely going to be the compression method you're using on the zip itself, so trying a different compression method may help as well.

2. The zip is part of a multi-part archive structure. Meaning it's part X out of how many ever total zip parts. I doubt it, but doesn't hurt to point it out anyway. If this is the case, you'll need all parts of the zip structure and usually have to unzip the first part only to unzip all of them properly.


Let me know if this works for you.
what happens if you just run the unzip command plain.

thus;

unzip file.zip

without any additional parameters.
(Jul 19, 2016 12:45 PM)SuckySucky Wrote:  what happens if you just run the unzip command plain.

thus;

unzip file.zip

without any additional parameters.

Really shouldn't matter. The only parameter he's passing is -d, which is for specifying a different target directory for the unzipped files and folders. The error message in his second screenshot is what clues the issue.
I think it's a Filezilla issue on closer inspection. The folder isn't transferring fully leading to corruption when it's on my server. Hmmph 😟.
Resident Writer for MyGamer.Com and Horrify.Net
(Jul 19, 2016 01:10 PM)Effexion Wrote:  I think it's a Filezilla issue on closer inspection. The folder isn't transferring fully leading to corruption when it's on my server. Hmmph 😟.

What protocol are you using to transfer? FTP or SFTP?
It's FTP. man. Worth trying CyberDuck instead?
Resident Writer for MyGamer.Com and Horrify.Net
(Jul 19, 2016 01:16 PM)Effexion Wrote:  It's FTP. man. Worth trying CyberDuck instead?

I use CyberDuck myself and like it a lot. But seeing as you have CLI access, try uploading the zip via SFTP instead to a folder that you have permissions to write to. I know it sounds weird, but humor me anyway. There's other alternatives too. If the .zip your uploading is located on another linux server, you could use SCP or rsync to remotely send it over SSH as well.
Follow this:

cd /dir1/dircontainingzip/
unzip -x zipfile.zip


Should work 100%
You can do it the long way around if you want.
Assuming you're on a Windows machine:
- Download Winscp
- self explanatory ( Fill in IP, port, user, password)
- Drag it to your Windows machine
- Unzip
- Return it to your server


Possibly Related Threads...
Thread / Author Replies Views Last Post
by jackharperOct 7, 2016 03:43 AM 12 327 Oct 7, 2016 03:43 AM
Last Post: 8lue7ornado
by BLOW.Aug 25, 2016 08:30 AM 9 325 Aug 25, 2016 08:30 AM
Last Post: BLOW.
by CorrosiveBlueberryFeb 1, 2016 08:28 AM 5 199 Feb 1, 2016 08:28 AM
Last Post: Preddy