1826780 Members
1755 Online
109702 Solutions
New Discussion

Failing to patch

 
Jeff Sadowski_2
Frequent Advisor

Failing to patch

When patching I keep running into the following error.

ERROR: A required patch PHKL_31151 (B.11.23) or PHKL_31152 (B.11.22) or any
patch which supersedes it must exist on this system. The swinstall
operation cannot proceed safely. Please install the required patch
and retry this operation.

searching itrc for my system
itrc.hp.com->patch database->find patches for my HP-UX system->upload system info->search for PHKL_31152
it tells me that PHKL_35100 supersedes that patch and it also helps and selects
PHKL_34094 to download
It gives me no option to get the superseded patch.
I download both.
I unzip them in /temp/test3/
and I run "sh create_depot_hp-ux_11"
then "rm /var/adm/sw/swagent.log" so I have a clean log file
then I run swinstall and point its depot source directory to /tmp/test3/depot
I then mark the BUNDLE for install It it shows as a partial install.
I then go to install it and it errors out.
And lone behold I still get the error
that I am missing PHKL_31151
I also get

ERROR: The "checkinstall" script for "PHKL_31500" failed (exit code
"1"). The script location was
"/var/tmp/BAAa07801/catalog/PHKL_31500/pfiles/checkinstall".
* This script had errors and the execution of this product
cannot proceed until the problem is fixed. Check the above
output from the script for further details.
* The software "PHKL_31500.CORE2-KRN,r=1.0" has previous
analysis errors.
The prerequisite "PHKL_31500.CORE2-KRN,r=1.0" for fileset
"PHKL_34094.CORE2-KRN,r=1.0" cannot be successfully resolved.

checking into that I run
"/var/tmp/BAAa07801/catalog/PHKL_31500/pfiles/checkinstall"

and it gives me the following errors

/var/tmp/BAAa07801/catalog/PHKL_31500/pfiles/checkinstall[77]: grep: not found.
/var/tmp/BAAa07801/catalog/PHKL_31500/pfiles/checkinstall[97]: uname: not found.

here are some trouble shooting steps I try to figure out if grep and uname exist
[root@rx2600 test3]$which grep
/usr/bin/grep
[root@rx2600 test3]$which uname
/usr/bin/uname

I'm really not sure what to do from here.
9 REPLIES 9
Calandrello
Trusted Contributor

Re: Failing to patch

friend
when you wheel preview of installation of the Patch appear algun error? you he arrived to conclude the same installation with error?
DCE
Honored Contributor

Re: Failing to patch



Jeff,

The error message is telling you what to do - Install "patch PHKL_31151 (B.11.23) or PHKL_31152 (B.11.22) or any
patch which supersedes it"

Then run the patch that is failing. The successful install is dependant on the pre req patch
Jeff Sadowski_2
Frequent Advisor

Re: Failing to patch

Exactly what I tried to do see above.
Its a recursive loop I'm trying to get out of.
Jeff Sadowski_2
Frequent Advisor

Re: Failing to patch

I will try "-x enforce_scripts=false" on swinstall and see if my system breaks. I can always rebuild but I was hoping for a better understanding of what was going on.
DCE
Honored Contributor

Re: Failing to patch



You could also try unselecting the enforce dependencies (I use the swinstall interacitve program and select/deslect the options there)
Jeff Sadowski_2
Frequent Advisor

Re: Failing to patch

no I want to make sure dependencies are met it was just having issues with the script for some reason. I might need to edit my /etc/PATH or something.
Steven E. Protter
Exalted Contributor

Re: Failing to patch

Shalom,

PHKL_31500 may have already been installed more than once. That could corrupt the SD/UX patch databse.

swlist -l product | grep PHKL_31500

swverify \*

#check output for problems with PHKL_31500.

If none of these problems exist, make sure that there is adequate space in /var for the install to complete.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Sadowski_2
Frequent Advisor

Re: Failing to patch

No it was not everything is fine now there was an issue with the checkinstall script that came with PHKL_31500 after using the option I mentioned just for those two patches all the rest of my patching went smoothly.

Note to hp developers: some fixes are needed in the checkinstall script for any superseding patch replacements for PHKL_31500
Jeff Sadowski_2
Frequent Advisor

Re: Failing to patch

Issue with PHKL_31500 should be resolved in any future replacements.
Only a problem with its checkinstall script