These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Wont extract a zipped file. on the new forum.
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
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&g... edited by: jaldeguer, at: 2008/05/14 09:00
Try unzipping the zipped file at the command line.
It worked uploaded and extracted this time.
Thanx Again Joe for the help
I am running CentOS 5
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.
No luck exact same error.
Successfully uploaded the following files :
/****/*****/public_html/*********.zip (1524824 bytes) , which could not be extracted : Missing command unzip
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
I tried it from the command line and got this error
bash: unzip: command not found
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? ;-)
--
Check out the forum guidelines!
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.
"I ran it from webmin under "other" "command shell""
So why not use the System:System Packages module instead? It's <i>designed</i> 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.
<div class='quote'>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.</div>
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. ;-)
--
Check out the forum guidelines!