Unable to pkgrm SUNWucea - pkgrm: ERROR: preremove script did not complete successfully (Doc ID 1470224.1)

Last updated on OCTOBER 14, 2016

Applies to:

Enterprise Manager Ops Center - Version 11g and later
Information in this document applies to any platform.

Symptoms

Unable to remove package SUNWucea so that OpsCenter can be installed.


bash-3.00# pkgrm SUNWucea

The following package is currently installed:
 SUNWucea  Sun Update Connection Enterprise agent
           (sparc) 1.1.1-314

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance <SUNWucea>

This package contains scripts which will be executed with super-user
permission during the process of removing this package.

Do you want to continue with the removal of this package [y,n,?,q] y
## Verifying package <SUNWucea> dependencies in global zone
## Processing package information.
## Executing preremove script.
svcadm: Pattern 'svc:/application/SUNWuce/agent' doesn't match any instances
svccfg: Pattern 'svc:/application/SUNWuce/agent' doesn't match any instances or services
pkgrm: ERROR: preremove script did not complete successfully

Removal of <SUNWucea> failed.
bash-3.00#


Running pkgrm -v SUNWucea will reveal additional details that may provide clues to the problem:


 bash-3.00# pkgrm -v SUNWucea

The following package is currently installed:
 SUNWucea  Sun Update Connection Enterprise agent
           (sparc) 1.1.1-314

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance <SUNWucea>
(A previous attempt may have been unsuccessful.)

This package contains scripts which will be executed with super-user
permission during the process of removing this package.

Do you want to continue with the removal of this package [y,n,?,q] y
## Verifying package <SUNWucea> dependencies in global zone
## Processing package information.
## Executing preremove script.
DO_SMF=no
+ smf_present
+ uname
+ [ SunOS = SunOS ]
+ [ -r /etc/svc/volatile/repository_door ]
+ [ ! -f /etc/svc/volatile/repository_door ]
DO_SMF=yes
+ [ yes = yes ]
+ svcadm disable svc:/application/SUNWuce/agent
svcadm: Pattern 'svc:/application/SUNWuce/agent' doesn't match any instances
+ svccfg delete -f svc:/application/SUNWuce/agent
svccfg: Pattern 'svc:/application/SUNWuce/agent' doesn't match any instances or services
pkgrm: ERROR: preremove script did not complete successfully

Removal of <SUNWucea> failed.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms