Solaris 10 Patching Issues

Hello folks! I appear to be having troubles installing the recommended cluster patch for the Solaris 10 OS!

I am absolutely clueless on where to start with this. I know it's an error with pkgadd and patchadd.

# ./installcluster --s10cluster

Setup .


Solaris 10 SPARC Recommended Patch Cluster (2010.02.05)

Application of patches started : 2010.02.22 06:57:23

Applying 120900-04 (1 of 8) ... skipped
Applying 121133-02 (2 of 8) ... skipped
Applying 119254-72 (3 of 8) ... failed

Application of patches finished : 2010.02.22 06:57:26


Following patches were skipped :
 Patches already applied
 120900-04     121133-02

Following patch failed to apply :
 119254-72

Aborting due to failure while applying patch 119254-72.

Application of this patch should have succeeded - this failure is unexpected.
Please assess cause of failure and verify system integrity before proceeding.

Install log files written :
  /var/sadm/install_data/s10s_rec_cluster_short_2010.02.22_06.57.23.log
  /var/sadm/install_data/s10s_rec_cluster_verbose_2010.02.22_06.57.23.log
  /var/sadm/install_data/s10s_rec_cluster_failed_2010.02.22_06.57.23.log
  /var/sadm/install_data/_patchadd_2010.02.22_06.57.23.log
  /var/sadm/install_data/_patchadd_subproc_2010.02.22_06.57.23.log
#

/var/sadm/install_data/s10s_rec_cluster_verbose_2010.02.22_06.57.23.log

----
# /usr/sbin/patchadd 119254-72
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:

119254-72


Checking installed patches...
Executing prepatch script...
Verifying sufficient filesystem capacity (dry run method)...

Patch 119254-72 failed to install due to a failure produced by pkgadd.

See /var/sadm/patch/119254-72/log for details

Patchadd is terminating.
----
patchadd exit code : 5
application of 119254-72 failed : unhandled subprocess exit status '5' (exit n branch)
finish time : 2010.02.22 06:57:26
FINISHED : application of 119254-72

# more /var/sadm/patch/119254-72/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.

/opt/patch/10_Recommended/patches/119254-72/SUNWinstall-patch-utils-root/install/checkinstall: /opt/patch/10_Recommended/patches/119254-72/SUNWinstall-patch-
utils-root/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.
#

/opt/patch/10_Recommended/patches/119254-72/SUNWinstall-patch-utils-root/install/checkinstall has permissions of 777

and I tested it

# ./checkinstall
PaTcH_MsG 8 Version  of  is not installed on this system.
# pwd
/opt/patch/10_Recommended/patches/119254-72/SUNWinstall-patch-utils-root/install
#

Any and all help will be greatly appreciated. Thank you very much!

ls -l in the patch directory. I think some permission issues perhaps in the patch files..

That was I was suspecting at first. That's why I did a chmod -R 777 on the entire patching directory

They are the current username and group with full read-write to all.

#pwd
/opt/patch/10_Recommended/patches
# ls -ln
total 388
drwxrwxrwx   8 2001     1337         512 Jan 18 17:25 118666-25
drwxrwxrwx   5 2001     1337         512 Jan 18 17:40 118667-25
drwxrwxrwx   7 2001     1337         512 Mar 19  2009 118712-23
drwxrwxrwx   3 2001     1337         512 Sep 10  2007 118731-01
drwxrwxrwx   7 2001     1337         512 Jan  5 15:12 118777-15
drwxrwxrwx 123 2001     1337        3072 Jan 29  2007 118833-36
drwxrwxrwx  16 2001     1337         512 Feb  5  2007 118918-24
drwxrwxrwx  14 2001     1337         512 Jan  4 15:29 119059-50
drwxrwxrwx   3 2001     1337         512 May 12  2005 119063-01
drwxrwxrwx   6 2001     1337         512 Nov 29  2006 119081-25
drwxrwxrwx  10 2001     1337         512 Aug  5  2009 119115-35


Thank you.

can you chown to root:root and re-try?

chmod 777 is NOT a good idea!

And you can not undo this. So unzip your patchcluster (always) on the solaris maschine, then all files have proper user (usually root) and proper permissions everywhere.

But the most important thing:
The user nobody needs to have the right to acces the place you have located the patches.

I had the same error and a simple move solved everything.

mv somewhere_in_dir/10_Recommended /10_Recommended
cd /10_Recommended
./installcluster --s10cluster

That was indeed the problem. The only issue was for me is that there was not enough room on the root partition. So I mounted swap to /10_Recommend and then copied the files over from there. :slight_smile: Thank you all!