Unable to remove package in Solaris-10


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to remove package in Solaris-10
# 15  
Old 08-08-2013
Am I missing some syntax ?
Code:
:/# truss -p $(ps -ef | grep pkgadd | grep -v grep | awk '{print $2}')
usage:  truss [-fcaeildD] [-[tTvx] [!]syscalls] [-[sS] [!]signals] \
        [-[mM] [!]faults] [-[rw] [!]fds] [-[uU] [!]libs:[:][!]funcs] \
        [-o outfile]  command | -p pid[/lwps] ...

# 16  
Old 08-08-2013
Ensure that each zone has its own /var/sadm/
Code:
zonename
df /var/sadm
ls -li /var/sadm

# 17  
Old 08-08-2013
It is sparse root zone
Code:
root@pqdb_s50:/# zonename
pqdb_s50
root@pqdb_s50:/# df /var/sadm
Filesystem            kbytes    used   avail capacity  Mounted on
/                    8178892  891753 7287139    11%    /
root@pqdb_s50:/# ls -li /var/sadm
total 117
      4329 -r--r--r--   1 root     sys         1092 Jan  9  2005 README
      4330 dr-xr-xr-x   4 root     bin            9 Aug  7 10:15 install
      4723 drwxr-xr-x   2 root     sys            2 Aug 30  2011 install_data
     16513 drwxr-xr-x  48 root     root          48 Dec  2  2011 patch
      4898 dr-xr-xr-x 1219 root     sys         1219 Aug  8 09:42 pkg
      4788 dr-xr-xr-x   2 root     sys            2 Aug 30  2011 security
      4671 drwxr-xr-x   3 root     sys            3 Aug 30  2011 servicetag
      4333 drwxr-xr-x   2 root     sys            3 Aug 30  2011 softinfo
      4648 drwxr-xr-x   4 root     sys            4 Sep  1  2011 spool
      4335 drwxr-xr-x   2 root     sys            3 Aug 30  2011 svm3
        13 drwxr-xr-x   5 root     sys            6 Dec  2  2011 system
      4339 drwxr-xr-x   5 root     sys            5 Aug 30  2011 wbem
root@pqdb_s50:/#

# 18  
Old 08-08-2013
you probably started the truss run before you started pkgadd ... the command line i gave would have given you the pid of pkgadd without looking for it separately through ps ... however, the pkgadd process needs to be running before you can find its pid which is why you were getting the truss error because there was no pid found ...
# 19  
Old 08-09-2013
You are right. This time, if I run pkgrm, it immediatelly comes back to prompt, failing on below error message
Code:
:/# pkgrm ILMT-TAD4D-agent
## Waiting for up to <300> seconds for package administration commands to become available (another user is administering packages)
pkgrm: ERROR: ERROR: Unable to acquire package administration lock for this system; try again later
pkgrm: ERROR: Unable to lock this zone for administration
1 package was not processed!

Then without removing it, I run pkgadd command and was waiting for
Code:
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

On another terminal, I ran truss command and pressed enter for default on first terminal. Here is truss output
Code:
/# truss -p $(ps -ef | grep pkgadd | grep -v grep | awk '{print $2}')
read(0, 0xFEEB9D10, 1024)       (sleeping...)
read(0, "\n", 1024)                             = 1
open64("/var/tmp/dstreAAAbBayew/signature", O_RDONLY|O_NONBLOCK) Err#2 ENOENT
zone_lookup("")                                 = 2
zone_getattr(2, ZONE_ATTR_NAME, 0xFFBFF098, 64) = 14
getpid()                                        = 11299 [10262]
getpid()                                        = 11299 [10262]
zone_lookup("")                                 = 2
zone_lookup("")                                 = 2
zone_getattr(2, ZONE_ATTR_NAME, 0xFFBFEAB8, 64) = 14
access("/usr/bin/pkgadm", X_OK)                 = 0
open("/dev/null", O_RDONLY)                     = 4
pipe()                                          = 5 [6]
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFFF) = 0x00000000 [0x00000000]
vfork()                                         = 11308
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
close(4)                                        = 0
close(6)                                        = 0
read(5, " E R R O R", 256)                      = 5
read(5, " :   c a n n o t   c r e".., 251)      = 102
read(5, 0x000741DB, 149)                        = 0
close(5)                                        = 0
waitid(P_PID, 11308, 0xFFBFEA18, WEXITED|WTRAPPED) = 0
write(2, " # #   W a i t i n g   f".., 131)     = 131
write(2, "\n", 1)                               = 1
getpid()                                        = 11299 [10262]
zone_lookup("")                                 = 2
zone_lookup("")                                 = 2
zone_getattr(2, ZONE_ATTR_NAME, 0xFFBFEAB8, 64) = 14
access("/usr/bin/pkgadm", X_OK)                 = 0
open("/dev/null", O_RDONLY)                     = 4
pipe()                                          = 5 [6]
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFFF) = 0x00000000 [0x00000000]
vfork()                                         = 11310
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
close(4)                                        = 0
close(6)                                        = 0
read(5, " E R R O R", 256)                      = 5
read(5, " :   c a n n o t   c r e".., 251)      = 102
read(5, 0x000741DB, 149)                        = 0
close(5)                                        = 0
waitid(P_PID, 11310, 0xFFBFEA18, WEXITED|WTRAPPED) = 0
write(2, " p k g a d d", 6)                     = 6
write(2, " :   E R R O R :  ", 9)               = 9
write(2, " E R R O R :  ", 7)                   = 7
write(2, " U n a b l e   t o   a c".., 78)      = 78
write(2, "\n", 1)                               = 1
write(2, " p k g a d d", 6)                     = 6
write(2, " :   E R R O R :  ", 9)               = 9
write(2, " U n a b l e   t o   l o".., 43)      = 43
write(2, "\n", 1)                               = 1
close(3)                                        = 0
access("/bin/rm", X_OK)                         = 0
open64("/dev/null", O_RDONLY)                   = 3
pipe()                                          = 4 [5]
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFFF) = 0x00000000 [0x00000000]
vfork()                                         = 11312
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
close(3)                                        = 0
close(5)                                        = 0
read(4, " r m :   C a n n o t   r".., 256)      = 101
read(4, "\n", 155)                              = 1
read(4, 0x00073F16, 154)                        = 0
close(4)                                        = 0
waitid(P_PID, 11312, 0xFFBFE9A0, WEXITED|WTRAPPED) = 0
access("/var/tmp/dstreAAAbBayew", F_OK)         = 0
access("/bin/rmdir", X_OK)                      = 0
open64("/dev/null", O_RDONLY)                   = 3
pipe()                                          = 4 [5]
lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFFF) = 0x00000000 [0x00000000]
vfork()                                         = 11313
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
close(3)                                        = 0
close(5)                                        = 0
read(4, " r m d i r", 256)                      = 5
read(4, " :   d i r e c t o r y  ".., 251)      = 76
read(4, 0x00073F01, 175)                        = 0
close(4)                                        = 0
waitid(P_PID, 11313, 0xFFBFE9A0, WEXITED|WTRAPPED) = 0
schedctl()                                      = 0xFF3F4000
sigaction(SIGINT, 0xFFBFF058, 0xFFBFF0F8)       = 0
sigaction(SIGHUP, 0xFFBFF058, 0xFFBFF0F8)       = 0
chdir("/")                                      = 0
write(2, "\n 1   p a c k a g e   w".., 30)      = 30
write(2, "\n", 1)                               = 1
_exit(1)

And then it fails.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Unable to find package

Hi there. I'm putting together a small cluster of Raspberry pis running Raspbian. They've all been setup identically from the same sd image. They all update and install perfectly except one node which refuses to install anything. It has exactly the same login, network, user details etc,... (3 Replies)
Discussion started by: MuntyScrunt
3 Replies

2. Linux

Unable to update package.

I am trying to update an openssl package on my node. # yum update openssl-1.0.1e-60.el7.x86_64 Loaded plugins: product-id, rhnplugin, subscription-manager This system is receiving updates from RHN Classic or Red Hat Satellite. baseline_prd_channel ... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies

3. UNIX for Dummies Questions & Answers

Unable to install from synaptic package manager

i am not able to install anything from package manager . (2 Replies)
Discussion started by: upvan111
2 Replies

4. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

5. Linux

How install a new package without remove old package?

Dear all, I would like to install a new version of package without remove old version on Centos and vice versa. Please give me advice! thanks much, (2 Replies)
Discussion started by: all4cfa
2 Replies

6. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

7. Ubuntu

unable to install package on Ubuntu

Hi all, I am working on Ubuntu 7.10 and I want to install libssl-dev_0.9.8a-7ubuntu0.13_i386.deb. So tryied it with apt-get command but getting the following error-- Then I downloaded .deb file and attempt to install it with package installer but again unable to install it and getting the... (3 Replies)
Discussion started by: smartgupta
3 Replies

8. Solaris

Remove cluster package

Hi, Is there an easy way to remove a cluster/meta cluster package (along with all the packages contained in the cluster package) in Solaris 10 ? I'm new to Solaris. (0 Replies)
Discussion started by: agn
0 Replies

9. Solaris

Unable to release package administration lock for this system

Hi, I created a Solaris package, but at the end of installation (on a Solaris 10 sparc) I get : #pkgadd -d MyApp_version__SunOS_sparc.pkg ... Installation of <MyAppName> was successful. pkgadd: ERROR: ERROR: Unable to release package administration lock for this system; try again later... (0 Replies)
Discussion started by: potro
0 Replies

10. Solaris

Unable to uninstall package in Solaris

I am getting the below mentioned error while trying to unistall a package from a 2.8 Solaris box. Please help.. pkgrm: ERROR: unable to determine current run-state Removal of <PDMgr> failed (internal error). No changes were made to the system. (1 Reply)
Discussion started by: chrisanto_2000
1 Replies
Login or Register to Ask a Question