Handling the pkgadd and pkgrm script errors for Solaris non-global zones

While installing or removing the agent in a Solaris non-global zone, you may experience the following errors:

For package installation

pkginstall: ERROR: postinstall script did not complete successfully

The pkgadd command used to install the agent package may throw this error message, if the Solaris non-global zone is in the installed state.

Workaround:

Ignore the error and boot the zone. Once the zone is booted, configure the preonline script for the resource.

For details on configuring the preonline script,

See Configuring SAPWebAS71 preonline script.

Alternatively, perform the following steps:

For package uninstallation

pkgrm: ERROR: postremove script did not complete successfully

The pkgrm command used to uninstall the agent may throw this error message, if the Solaris non-global zone is in installed state.

Workaround:

Perform the following steps: