Gopi Desaboyina Solaris Blogs

Just another weblog

Solaris 10: Patch fails with install/checkinstall: test: argument expected

Example below:

/var/tmp/121012-03/SUNWcsu/install/checkinstall: test: argument expected

pkgadd: ERROR: checkinstall script did not complete successfully
Dryrun complete.
No changes were made to the system.


This Problem happens when your /var/sadm/pkg/<package name>/pkginfo file is corrupted or messed up. In most of the cases I’ve seen is due to PATCHLIST entry in pkginfo file has “unwanted characters” or patch names not in that format it expected.

PATCHLIST should contain <PATCH BASE NUMER><REVISION> separated by spaces.

Exmaple for above error when I looked at pkginfo file. it looked like this.

# cat /var/sadm/pkg/SUNWcsu/pkginfo |grep -i patchlist
PATCHLIST=118367-04 118371-07 118373-01 118872-04 118918-22 119042-10 119573-01 119574-02
 119578-30 119824-02 120044-01 120050-04 120062-01 120128-02 120618-01 120737-01 120816-01 
120830-05 120845-03 120988-01 121002-03 121012-02 121132-01 12641SUNW_OBSOLETES=
Issue was caused due to bad entry 12641SUNW_OBSOLETES=. I’ve seem some cases PATHCLIST will have
just some base number without any -REVISION then also we get this error. 
so correcting/removing that entry & installing patch again should resolve the issue.

May 19, 2011 Posted by | Solaris | | Leave a comment

Solaris 10 Patching issue: Patches fails with unhandled subprocess exit status ‘5’ (exit n branch)

Patch fails with below errors.

# /usr/sbin/patchadd 119254-78
Validating patches…

Loading patches installed on the system…


Loading patches requested to install.


Checking patches that you specified for installation.


Approved patches will be installed in this order:


Checking installed patches…
Executing prepatch script…

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

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

Patchadd is terminating.

Log shows below error.

patchadd exit code : 5
application of 119254-78 failed : unhandled subprocess exit status ‘5’ (exit n branch)
finish time : 2011.05.16 20:14:13
FINISHED : application of 119254-78


Whenever you get this kind of errors. Please make sure you’ve following things

1. patch dir & it’s sub-dir  is owned by root:root and read and execute permission is there for others

2. make sure there are nobody & noaccess users exist in your machine. if any one of them is missing you would get this error.

3. so it’s better always install patches from /tmp or /var/tmp. If it’s patch bundle or cluster patch set. better do it from /var/tmp. that way even on reboot you wouldn’t loose unzipped version of patch set.

May 19, 2011 Posted by | Solaris | | 2 Comments