I have run into a problem while attempting to de-install netconnect from a Sol8 box. We got an error during the un-install script when it tries to remove SUNWsrsrp. It can't find the srsuser. We have no idea what user was specified initially. I have tried to remove the package on its own, to no avail. I have also tried to uninstall and reinstall the SUNWsrspx package with a specific username, it fails to re-install completely and the deinstallation of SUNWsrsrp continues to fail. Running /opt/SUNWsrspx/bin/srsuser also gives a failure. Does anyone know how to force the removal of this package?
# ./UninstallNetConnect.003.001.001.sh
SRS Net Connect 3.1 Uninstall Script
Processing SUNWsrsep
Processing SUNWsrsvp
Processing SUNWsrstp
Processing SUNWsrsrp
Calling: pkgrm SUNWsrsrp
Error getting username, see SYSLOG(/var/adm/messages) for details
pkgrm: ERROR: preremove script did not complete successfully
Removal of <SUNWsrsrp> failed.
Error removing: SUNWsrsrp, pkgrm returned: 1
# pkgrm -v SUNWsrsrp
The following package is currently installed:
SUNWsrsrp Sun(SM) Net Connect Reboot Provider IM
(sparc) 003.000.003
Do you want to remove this package? y
## Removing installed package instance <SUNWsrsrp>
(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 dependencies.
## Processing package information.
## Executing preremove script.
PATH=/usr/bin
log=logger -pdaemon.err
+ [ -z ]
+ pkginfo -r SUNWsrspx
PROXY_BASEDIR=/opt
+ [ -z /opt ]
var_dir=/var/opt/SUNWsrsrp
+ [ ! -d /var/opt/SUNWsrsrp ]
latest_file=/var/opt/SUNWsrsrp/latest
old_crontab=/var/opt/SUNWsrsrp/old_crontab.11700
new_crontab=/var/opt/SUNWsrsrp/new_crontab.11700
srsuser_program=/opt/SUNWsrspx/bin/srsuser
+ [ ! -x /opt/SUNWsrspx/bin/srsuser ]
+ /opt/SUNWsrspx/bin/srsuser
Error getting username, see SYSLOG(/var/adm/messages) for details
srs_user=
+ [ 1 -ne 0 ]
+ error_exit could not get the srs user
+ logger -pdaemon.err ERROR: could not get the srs user
+ exit 1
pkgrm: ERROR: preremove script did not complete successfully
Removal of <SUNWsrsrp> failed.