Knowledgebase: Linux Specific
Error while updating remote client (zip library missing) - Linux/FreeBSD
Posted by Andre Kuehnemund on 19 December 2013 15:32

1.) P5 Server running on Linux (CentOS, minimal install). Customer tried to update P5 version installed on a client using the 'Update client' functionality under 'Clients'. This failed with the following error message:

 

"Notice:

generating the distribution file failed: /usr/local/aw/temp/awpstupd.zip

/usr/local/aw/etc/awdist.sh: line 60:

zip: command not found

OK"

 

The cause of this error was that the 'zip' package did not get installed as part of a minimal install of CentOS. Customer ran "yum install zip" in order to install 'zip'. Once 'zip' had been installed the remote update worked flawlessly.

 

2.) The FreeNAS P5 appliance (http://www.archiware.com/blog/build-your-own-archiware-appliance-en/ & http://www.archiware.com/blog/build-your-own-archiware-p5-appliance-german/) also does not come with the 'zip' package installed. Attempting to remotely upgrade P5 clients from a FreeNAS P5 server will result in the same error as above.

To install the 'zip' package, connect to your FreeNAS P5 appliance via ssh, then run the following commands:

wget http://pkg.freebsd.org/FreeBSD:9:amd64/latest/All/zip-3.0_1.txz 

(Please note the path and package name may have to be changed, based on FreeBSD version, CPU architecture and 'zip' package version. Please use 'uname -a' to get OS version and CPU architecture. Lists of FreeBSD packages can be found here: http://pkg.freebsd.org/

pkg install zip-3.0_1.txz

rehash

Zip should now be installed. Execute 'zip' at command prompt. You should get something like this:

 

[root@freenas] ~# zip

Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.

Zip 3.0 (July 5th 2008). Usage:

...

 

The remote client update should now work.

 

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).