04-17-2007
Problems de-installing NetConnect
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.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have been trying for several days now to get 2.6 to load and boot on a Sun E4500. The installation appears to go seamlessly, but when it tries to boot the kernel panics and reboots immediately after the kernel loads (after the spinning \|/- thing). I installed Solaris 8 to make sure there were no... (7 Replies)
Discussion started by: 98_1LE
7 Replies
2. UNIX for Dummies Questions & Answers
1. OSes coexistence
can i install solaris 8 on my pc's 3th primary harddisk partition without damage the user and boot datas of installed operation system? and does i have to install Solaris 8 within several G(such as 8G) size of the harddisk? the following is partition table of my harddisk:
... (2 Replies)
Discussion started by: samprax
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have installed a SCSI Controller onto an HPUX 10.20b and I don't have any driver files for it when I check in Sys Admin. Do I need to update the kernel? I am not sure how to get the computer to recognize this controller... any suggestions?
Thanks (2 Replies)
Discussion started by: nattie_h
2 Replies
4. UNIX for Dummies Questions & Answers
Hi!!
I have problems installing perl5 in a Tru64 4.0F enviroment, and i need it to install OpenSSL and OpenSSH to establis a SFTP...
I'm installing perl 5.8.8 but an error occurr during make test, i ran ./perl harness and the result is the problem is on op/filetest.t
I didn't know what to... (0 Replies)
Discussion started by: irasela
0 Replies
5. Solaris
I've been trying to install Top on our Solaris box but it's giving me some trouble.
The uname -a command shows
SunOS servername 5.9 Generic sun4u sparc SUNW,Ultra-250
I downloaded Top form www.unixtop.com.
On the initial install I got errors because I didn't have a C compiler installed.... (2 Replies)
Discussion started by: KenLynch
2 Replies
6. SCO
hi there,
i have a hp DL380G5 with hpsas array controller P400.
when installing, i use bootstring as following;
defbootstr link=hpsas hd=Sdsk Sdsk=hpsas(0,0,0,0) Srom=wd(0,0,0)
then BTLD disk boots ok and looks like the drivers are loaded, all devices show up in boot screen, giving me a... (1 Reply)
Discussion started by: jose_antonio
1 Replies
7. Solaris
Does re-installing the Solaris OS when the existing OS has problems solve the issue?
Problem here I mean "FILE SYSTEM BAD" after a fsck and the machine is not rebooting.
My doubt also includes the question whether all inodes etc in the hard disk of the Sun machine gets re-formatted when we... (2 Replies)
Discussion started by: lydiaEd
2 Replies
8. Solaris
I just built my new computer with a q6600 quad core, 4 gig ram, Nvidia vidoo card but when I try to install the latest Solaris 10 on it the keyboard is not being detected when the installation starts so I'm unable to go complete the installation.
First I tried a USB keyboard and it didn't work,... (2 Replies)
Discussion started by: isomorphic
2 Replies
9. UNIX for Dummies Questions & Answers
Hello,
When i attempt to install Java. I get this error code
Can someone tell me what im doing wrong. (2 Replies)
Discussion started by: Fob Upset
2 Replies
10. AIX
I have created an LPAR and the next step is to get SAMBA installed, I have mounted our NIM server up and copied over the SAMBA binaries .bff files. How do i install these? i tried doing this through SMIT but had no luck..? Any help would be greatly appreciated. AIX OS 6.1 (2 Replies)
Discussion started by: audis$
2 Replies
pkgrm(1M) pkgrm(1M)
NAME
pkgrm - remove a package from the system
SYNOPSIS
pkgrm [-nv] [-a admin] [ [-A | -M] -R root_path] [-V fs_file] [pkginst... | -Y category[,category...]]
pkgrm -s spool [pkginst... | -Y category[,category...]]
pkgrm will remove a previously installed or partially installed package from the system. A check is made to determine if any other packages
depend on the one being removed. If a dependency exists, the action taken is defined in the admin file.
The default state for the command is in interactive mode, meaning that prompt messages are given during processing to allow the administra-
tor to confirm the actions being taken. Non-interactive mode can be requested with the -n option.
The -s option can be used to specify the directory from which spooled packages should be removed.
Certain unbundled and third-party packages are no longer entirely compatible with the latest version of pkgrm. These packages require user
interaction throughout the removal and not just at the very beginning.
To remove these older packages (released prior to Solaris 2.4), set the following environment variable:NONABI_SCRIPTS=TRUE pkgrm permits
keyboard interaction throughout the removal as long as this environment variable is set.
The following options are supported:
-a admin Use the installation administration file, admin, in place of the default admin file. pkgrm first looks in the current work-
ing directory for the administration file. If the specified administration file is not in the current working directory,
pkgrm looks in the /var/sadm/install/admin directory for the administration file.
-A Remove the package files from the client's file system, absolutely. If a file is shared with other packages, the default
behavior is to not remove the file from the client's file system.
-M Instruct pkgrm not to use the $root_path/etc/vfstab file for determining the client's mount points. This option assumes the
mount points are correct on the server and it behaves consistently with Solaris 2.5 and earlier releases.
-n Non-interactive mode. If there is a need for interaction, the command will exit.
Use of this option requires that at least one package instance be named upon invocation of the command. Certain conditions
must exist for a package to be removed non-interactively or a non-restrictive admin file needs to be used.
-R root_path Defines the full path name of a directory to use as the root_path. All files, including package system information files,
are relocated to a directory tree starting in the specified root_path.
Note - The root file system of any non-global zones must not be referenced with the -R option. Doing so might damage the
global zone's file system, might compromise the security of the global zone, and might damage the non-global zone's
file system. See zones(5).
-s spool Remove the specified package(s) from the directory spool. The default directory for spooled packages is /var/sadm/pkg.
-v Trace all of the scripts that get executed by pkgrm, located in the pkginst/install directory. This option is used for
debugging the procedural and non-procedural scripts.
-V fs_file Specify an alternative fs_file to map the client's file systems. Used in situations where the $root_path/etc/vfstab file is
non-existent or unreliable.
-Y category Remove packages based on the value of the CATEGORY parameter stored in the installed or spooled package's pkginfo(4) file.
No package with the CATEGORY value of system can removed from the file system with this option.
The following operand is supported:
pkginst Specifies the package to be removed. The format pkginst.* can be used to remove all instances of a package.
The asterisk character (*) is a special character to some shells and may need to be escaped. In the C-Shell, "*" must be
surrounded by single quotes (') or preceded by a backslash ().
Example 1: Removing All instances of SUNWjunk From client1
The following example removes all instances of SUNWjunk from client1:
example% pkgrm -R /export/root/client1 SUNWjunk*
Note the caveat on the use of the -R option in the description of that option, above.
The following exit values are returned:
0 Successful completion.
1 Fatal error.
2 Warning.
3 Interruption.
4 Administration.
10 Reboot after removal of all packages.
20 Reboot after removal of this package.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
pkginfo(1), pkgmk(1), pkgparam(1), pkgproto(1), pkgtrans(1), installf(1M), pkgadd(1M), pkgask(1M), pkgchk(1M), removef(1M),
admin(4),pkginfo(4), attributes(5)
6 Apr 2005 pkgrm(1M)