Wont extract a zipped file.

  • southerns
  • 05/09/08
  • Offline
Posted: Wed, 2008-05-14 00:58

Using the Upload and Download option in Webmin

When I upload a zipped file to a directory and select "Extract ZIP or TAR files?"

It loads the file but wont extract it to the directory, says

Successfully uploaded the following files :

/****/*****/public_html/*********.zip (1524824 bytes) , which could not be extracted : Missing command unzip

Is there something I need to set before I can use the

"Extract ZIP or TAR files?" facility


Re:Wont extract a zipped file.

  • jaldeguer
  • 10/11/07
  • Offline
  • Wed, 2008-05-14 04:46

According to the error your missing the program unzip. If you are on a Debian or Ubuntu you could install it as apt-get install unzip at the command prompt. On a Redhat type system you can use yum install unzip.

http://linux.about.com/od/commands/l/blcmdl1_unzip.htm<br><br>Post edited by: jaldeguer, at: 2008/05/14 09:00


Re:Wont extract a zipped file.

  • jaldeguer
  • 10/11/07
  • Offline
  • Wed, 2008-05-14 07:46

Try unzipping the zipped file at the command line.


Re:Wont extract a zipped file.

  • southerns
  • 05/09/08
  • Offline
  • Wed, 2008-05-14 23:40

It worked uploaded and extracted this time.

Thanx Again Joe for the help


Re:Wont extract a zipped file.

  • southerns
  • 05/09/08
  • Offline
  • Wed, 2008-05-14 04:58

I am running CentOS 5


Re:Wont extract a zipped file.

  • southerns
  • 05/09/08
  • Offline
  • Wed, 2008-05-14 05:04

I thought I had read some where that CentOS is based on Red Hat

So I tried

yum install unzip

and it worked, seems to have installed

Now to see if it extracts.

thanx.


Re:Wont extract a zipped file.

  • southerns
  • 05/09/08
  • Offline
  • Wed, 2008-05-14 05:14

No luck exact same error.

Successfully uploaded the following files :

/****/*****/public_html/*********.zip (1524824 bytes) , which could not be extracted : Missing command unzip


Re:Wont extract a zipped file.

  • southerns
  • 05/09/08
  • Offline
  • Wed, 2008-05-14 22:44

I tried this again and noticed there is an error right at the end of the install

> yum install unzip Loading "installonlyn" plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package unzip.i386 0:5.52-2.2.1 set to be updated --> Running transaction check

Dependencies Resolved

=============================================================================

Package Arch Version Repository Size

Installing: unzip i386 5.52-2.2.1 base 155 k

Transaction Summary

Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 155 k Is this ok [y/N]: Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 172, in main base.doTransaction() File "/usr/share/yum-cli/cli.py", line 413, in doTransaction if not self.userconfirm(): File "/usr/share/yum-cli/output.py", line 115, in userconfirm choice = raw_input('Is this ok [y/N]: ') EOFError: EOF when reading a line


Re:Wont extract a zipped file.

  • southerns
  • 05/09/08
  • Offline
  • Wed, 2008-05-14 23:00

I tried it from the command line and got this error

bash: unzip: command not found


Re:Wont extract a zipped file.

  • Joe
  • 10/23/08
  • Offline
  • Wed, 2008-05-14 23:05

So, obviously yum is failing.

Did you run it from a real interactive terminal? The System Packages module knows how to install things via yum (generally) if you don't want to use a real command line. But if you use Command Shell, it'll fail because it isn't interactive. You might be able to convince it to install via the Command Shell with "yum -y install unzip"...but why not just use the tools meant for the job? ;-)


Re:Wont extract a zipped file.

  • southerns
  • 05/09/08
  • Offline
  • Wed, 2008-05-14 23:28

I ran it from webmin under "other" "command shell"

I am still getting used to working with this as I was using Cpanel/WHM since 1996 so tend to do everything if I can from Webmin or Virtualmin.

I just tried using

yum -y install unzip

and it now says

Installed: unzip.i386 0:5.52-2.2.1 Complete!

I have downloaded Putty already and just started with it. (Logged in and typed the help command read it and logged out)

Will try uploading again.

Thanx Joe for the help.


Re:Wont extract a zipped file.

  • Joe
  • 10/23/08
  • Offline
  • Thu, 2008-05-15 12:04

"I ran it from webmin under "other" "command shell""

So why not use the System:System Packages module instead? It's designed for installing packages.

The Command Shell is great to have around (for when ssh is down for some reason, or you just need to run a one-off command--or if you're on a mobile device that doesn't support any interactive terminal type), but it's not a general purpose shell--it's not interactive. So, don't use it for things are are interactive.

I am still getting used to working with this as I was using Cpanel/WHM since 1996 so tend to do everything if I can from Webmin or Virtualmin.

You can do far more from the Webmin/Virtualmin UI than you ever could with cPanel/WHM...but you should use the right tool for the job. ;-)