Committing superseded, but corrupt patches

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: