May 30, 2009 Leave a comment
In the course of installing HPUX patches, I usually make a point of committing patches that have been superseded at least once by running:
# cleanup -c 1
While running this on a few machines, I’ve seen error messages similar to this:
ERROR: swmodify(1M) encountered problems committing the superseded patches:
ERROR: Could not select the software "PHCO_27020.*". This software is in a corrupt state and is not available for selection. Corrupt software can be removed with the swremove command, or replaced with the swcopy command.
We can get around this by forcing the patch to be marked as configured and superseded. Using the patch listed in the above example, do this:
# swmodify -a state=configured -a patch_state=superseded PHCO_27020.*
Once that is done,
cleanup will no longer complain and will finish successfully.