I went to sunslove.sun.com got all 6 patches listed. And I'm trying to use
the patchadd program to apply them, however it seems to be failing
This is what I did:
# ls -la 106960-01.zip
-rw------- 1 root other 26513 Feb 8 12:54 106960-01.zip
# unzip 106960-01.zip
Archive: 106960-01.zip
creating: 106960-01/
inflating: 106960-01/README.106960-01
inflating: 106960-01/.diPatch
creating: 106960-01/SUNWman/
inflating: 106960-01/SUNWman/pkgmap
inflating: 106960-01/SUNWman/pkginfo
creating: 106960-01/SUNWman/install/
inflating: 106960-01/SUNWman/install/checkinstall
inflating: 106960-01/SUNWman/install/copyright
inflating: 106960-01/SUNWman/install/i.none
inflating: 106960-01/SUNWman/install/patch_checkinstall
inflating: 106960-01/SUNWman/install/patch_postinstall
inflating: 106960-01/SUNWman/install/postinstall
inflating: 106960-01/SUNWman/install/preinstall
creating: 106960-01/SUNWman/reloc/
creating: 106960-01/SUNWman/reloc/share/
creating: 106960-01/SUNWman/reloc/share/man/
creating: 106960-01/SUNWman/reloc/share/man/sman1m/
inflating: 106960-01/SUNWman/reloc/share/man/sman1m/patchadd.1m
inflating: 106960-01/SUNWman/reloc/share/man/sman1m/patchrm.1m
# patchadd ./106960-01
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Installing patch packages...
Patch 106960-01 failed to install due to a failure produced by pkgadd.
See /var/sadm/patch/106960-01/log for details
#
And when I check out /var/sadm/patch/106960-01/log it says:
# cat /var/sadm/patch/106960-01/log
This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.
pkgadd: ERROR: exec of /sbin/sh failed, errno=13
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.
#
I get this error on all the patches I try to install. It mentions failed
to exec /sbin/sh. But sh is in sbin.. so I'm not sure what the problem is
Any ideas? Thanks
-Vlad
Error 13 is:
13 EACCES Permission denied
An attempt was made to access a file in a way forbid-
den by the protection system.
Check out the Solaris FAQ (courtesy of Casper Dik):
http://www.wins.uva.nl/pub/solaris/solaris2.html
http://www.wins.uva.nl/cgi-bin/sfaq.cgi
The solaris FAQ says:
5.55) Patch installation often fails with "checkinstall" errors.
When installing a patch, the Solaris 2.5+ patch installation procedure
will execute the script "checkinstall" with uid nobody.
If any of the patch files or if any part of the path leading up to the
patch directory cannot be read by nobody, an error
similar to the following will appear:
./installpatch .
Generating list of files to be patched...
Verifying sufficient filesystem capacity (exhaustive method) ...
Installing patch packages...
pkgadd: ERROR: checkinstall script did not complete successfully
....
You can workaround this in two ways, one is to make sure that nobody can
read all patch files and execute a "pwd" in the
patch directory or add an account "install" to /etc/passwd:
install:x:0:1:installpatch braindamage:/:/bin/true
Installpatch uses "nobody" as a fallback if it cannot find the "install"
user.
Gerard
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Gerard Tromp, Ph.D.
CMMG, Wayne State University vox: 313-577-8773
3116, Scott Hall fax: 313-577-5218
540 E Canfield Ave e-mail: tr...@sanger.med.wayne.edu
Detroit, MI 48201 gtr...@cmb.biosci.wayne.edu