unzip: filename not matched

Forum rules
Before you post please read how to get help
Seff
Level 3
Level 3
Posts: 185
Joined: Mon Aug 31, 2015 5:40 pm

unzip: filename not matched

Postby Seff » Wed Apr 26, 2017 2:22 pm

Hello- I'm trying to set up Android Studio on Mint 17.2 MATE. (https://developer.android.com/studio/preview/install-preview.html) The problem is, when I try to extract it via command-line I get:

Code: Select all

sudo unzip -xf android-studio-ide-171.3909050-linux.zip -C /usr/local
Archive:  android-studio-ide-171.3909050-linux.zip
caution: filename not matched:  -C
caution: filename not matched:  /usr/local


While I could just unzip the thing from my file manager and set up a script or desktop entry, I want to know why this command fails. Please help.

I was able to extract the file, dropping all the arguments and simply running unzip on it. Odd.
Mint "Rafaela" Cinnamon x64
Satellite L755D

User avatar
xenopeek
Level 24
Level 24
Posts: 21473
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: unzip: filename not matched

Postby xenopeek » Wed Apr 26, 2017 2:45 pm

The options you use on the command do not make any sense. See https://explainshell.com/explain?cmd=su ... sr%2Flocal

Perhaps have another read of the unzip manpage.
Image

Seff
Level 3
Level 3
Posts: 185
Joined: Mon Aug 31, 2015 5:40 pm

Re: unzip: filename not matched

Postby Seff » Wed Apr 26, 2017 4:49 pm

Thanks. I was given instructions on how to unpack a tar file, but then it turned out Studio is packaged in a zip file.
Mint "Rafaela" Cinnamon x64
Satellite L755D

User avatar
Flemur
Level 13
Level 13
Posts: 4658
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: unzip: filename not matched

Postby Flemur » Wed Apr 26, 2017 5:14 pm

Double-click the .zip file in your file-browser.
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

Seff
Level 3
Level 3
Posts: 185
Joined: Mon Aug 31, 2015 5:40 pm

Re: unzip: filename not matched

Postby Seff » Wed May 03, 2017 11:45 am

Flemur wrote:Double-click the .zip file in your file-browser.


Does that give me administrative permissions, though? I think they're needed for anything that's under / rather than /home.
Mint "Rafaela" Cinnamon x64
Satellite L755D

shengchieh
Level 4
Level 4
Posts: 400
Joined: Sat Mar 01, 2008 1:25 am
Contact:

Re: unzip: filename not matched

Postby shengchieh » Fri May 05, 2017 10:40 pm

In thunar, I think (but not sure) you can set it to have administrative status. I never done this (always used the terminal - long-time unix user). Take a look

thunar -> edit -> configure custom actions

There is an "open as root" option.

Never used it, so you are on your own. Hopefully you figure it out.

Sheng-Chieh


Return to “Scripts & Bash”