Patch xxxxxx-xx failed to install due to a failure produced by pkgadd.
Just sharing some solutions to problems I have faced. This problem was found in Solaris 10 when installing Solaris OS patches. It's an old workaround, but somehow we still need to do it today....
I was installing some patches, and got this:
# ./install_patches.sh
Installing patch 118683-03
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!
Approved patches will be installed in this order:
118683-03
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Patch 118683-03 failed to install due to a failure produced by pkgadd.
See /var/sadm/patch/118683-03/log for details
Patchadd is terminating.
If you have ever encountered similar errors, check into the log file generated. If you see something like pkgadd: ERROR: checkinstall script did not complete successfully, then here are some answers.
When installing a patch, the 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 pkgadd: ERROR: checkinstall script did not complete successfully will appear:
It seems that at some point the patchadd process does an su to the user install if one exists, otherwise to the user nobody. If the patch files and all parent directories are not readable by either install or nobody, you get the above error messages.
Here are two workarounds, but i prefer the second one:
1. Set the execute permission for all on /var/spool/patch so that the user nobody can read all patch files and execute a pwd in the patch directory hierarchy.
2. Add an account for user install to the system:
useradd -u 0 -o -g 1 -c "Install user" -d / -s /bin/true install
RSS Feed