Operating System - HP-UX
1830060 Members
2271 Online
109998 Solutions
New Discussion

unable to swremove a patch from 10.20

 
John Zigler
New Member

unable to swremove a patch from 10.20

I inherited this box and the swinstall.log and swverify logs report a Warning for a patch which has been superseded
Warning: Incomplete definition for the product
swremove errors for the same reason.
How do I clear out the database entry so it quits reporting the error.
6 REPLIES 6
Jeff Schussele
Honored Contributor

Re: unable to swremove a patch from 10.20

Hi John,

First determine the state the patch is in:

swlist -l patch -a state
or
swverify PH??_XXXX

If it's installed but not configured, then you may be able to complete the config with

swconfig PH??_XXXX

You may have to unconfigure it to remove it

swconfig -u PH??_XXXX

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Helen French
Honored Contributor

Re: unable to swremove a patch from 10.20

You can remove that entry with:

# swmodify -u Text_of_Patch,r=revision_number

text_of_patch should be the one which the system complains about and revision number should be the version.
Life is a promise, fulfill it!
John Zigler
New Member

Re: unable to swremove a patch from 10.20

swverify PHSS_23804

======= 12/03/03 12:59:30 MST BEGIN swverify SESSION
(non-interactive) (jobid=e2e-cot1-0099)

* Session started for user "root@e2e-cot1".

* Beginning Selection
* Target connection succeeded for "e2e-cot1:/".
WARNING: Incomplete definition for the product "PHSS_23804", beginning
at line 26804. The following attributes are not defined:
filesets the filesets contained in the product
ERROR: Could not apply the software selection "PHSS_23804"; it is not
available from depot or root "e2e-cot1:/".
* Software selection failed for "e2e-cot1:/".
ERROR: Cannot continue the "swverify" task.
* Selection had errors.



======= 12/03/03 12:59:34 MST END swverify SESSION (non-interactive)
(jobid=e2e-cot1-0099)
John Zigler
New Member

Re: unable to swremove a patch from 10.20

swconfig PHSS_23804

======= 12/03/03 13:00:48 MST BEGIN swconfig SESSION
(non-interactive) (jobid=e2e-cot1-0100)

* Session started for user "root@e2e-cot1".

* Beginning Selection
* Target connection succeeded for "e2e-cot1:/".
WARNING: Incomplete definition for the product "PHSS_23804", beginning
at line 26804. The following attributes are not defined:
filesets the filesets contained in the product
ERROR: Could not apply the software selection "PHSS_23804"; it is not
available from depot or root "e2e-cot1:/".
* Software selection failed for "e2e-cot1:/".
ERROR: Cannot continue the "swconfig" task.
* Selection had errors.

same for -u option
the file are missing in patch and source
John Zigler
New Member

Re: unable to swremove a patch from 10.20

swmodify -u PHSS_23804
WARNING: Incomplete definition for the product "PHSS_23804", beginning
at line 26804. The following attributes are not defined:
filesets the filesets contained in the product

* Session started for user "root@e2e-cot1".

* Beginning Selection
* Target connection succeeded for "e2e-cot1:/".
ERROR: No software selections have been specified. You must specify
a list of products (or use the "\*" wildcard).
ERROR: Cannot continue the "swverify" task.
* Selection had errors.

This looks to have done the trick! - Thanks
Todd McDaniel_1
Honored Contributor

Re: unable to swremove a patch from 10.20

You hadn't said you tried to run cleanup to remove superceeded patches.

cleanup -c 1( or 2) #depending on if it is superceeded once or twice.

**************TRY THIS!!! *****************
Also, I might try to restore the patch from a tape as you would restore it to fallback, to /var/adm/sw/save dir. THEN do the swremove as normal to remove it.



Unix, the other white meat.