Unable to remove package in Solaris-10

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Old 08-06-2013
Unable to remove package in Solaris-10

I am installing a IBM package (ILMT) on Solaris-10 box, which is having few non global zones. It is not allowing me to remove old package and not allowing me to install new one.
root@pqdb_s50:/root# pkgrm ILMT-TAD4D-agent
## Waiting for up to <300> seconds for package administration commands to become available (another user is administering packages on zone <pqdb_s50-zrpp10>)
pkgrm: ERROR: ERROR: Unable to acquire package administration lock for zone <pqdb_s50-zrpp10>; please try again later
pkgrm: ERROR: ERROR: Unable to acquire lock on non-global zone <pqdb_s50-zrpp10>: releasing all locks
pkgrm: ERROR: unable to lock zones to perform operations

1 package was not processed!
pqdb_s50-zrpp10 is one of its non global zone. I have already deleted /var/sadm/install/.lockfile and /tmp/.ai.pkg.zone.lock-afdb66cf-1dd1-11b2-a049-000d560ddc3e files. But /tmp/.ai.pkg.zone.lock-afdb66cf-1dd1-11b2-a049-000d560ddc3e keeps coming back, whenever I am running pkgrm.
How should I remove this ?
# 2  
Old 08-06-2013
make sure that there is nobody in the non-global zone actually doing something with that package then rerun pkgrm -A ILMT-TAD4D-agent
# 3  
Old 08-06-2013
No luck. This instance is installed in non-global zone also. I tried stopping services (old) and removing it from non-global zone first. There also, it is giving same error.
# 4  
Old 08-06-2013
unless somebody here has a better alternative ...

if you could reboot the non-global zone without consequence, reboot it and then retry the pkgrm ...

if still an issue, you may have to remove the package the hard way by actually deleting the ILMT-TAD4D-agent directory under /var/sadm/pkg and then rerunning the pkgrm -A command if pkginfo still lists the package ...
# 5  
Old 08-06-2013
I just noticed, when I was trying to remove/install in few more servers. I am facing this issue when ITLM is installed in global as well as any of its zone also.
on other servers, where it is installed only on global or only on non-global, there is no problem.
# 7  
Old 08-06-2013
It doesn't recognize switch
/# pkgrm -G ILMT-TAD4D-agent
pkgrm: illegal option -- G
        pkgrm [-a admin] [-n] [[-M|-A] -R host_path] [-V fs_file] [-v] [-Y category[,category ...] | pkg [pkg ...]]
        pkgrm -s spool [-Y category[,category ...] | pkg [pkg ...]]

Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Unable to find package MuntyScrunt UNIX for Beginners Questions & Answers 3 09-06-2018 09:47 AM
Unable to update package. Junaid Subhani Linux 0 08-02-2017 12:04 PM
Unable to install from synaptic package manager upvan111 UNIX for Dummies Questions & Answers 2 04-04-2013 02:34 PM
I can't remove rpm package Douglas Ramalho Red Hat 1 02-06-2013 02:30 AM
Problem when trying to remove a package using rpm command - error: package is not installed g_p Emergency UNIX and Linux Support 4 04-04-2012 06:36 AM
Remove a package forcibly in HPUX snreddy_gopu HP-UX 1 01-03-2012 05:07 PM
How install a new package without remove old package? all4cfa Linux 2 08-24-2011 07:49 AM
How to find dependancies of .dstream package (Solaris) & .rpm package( linux) yb4779 UNIX for Advanced & Expert Users 0 03-09-2011 05:54 AM
Remove version numbers from package lists Tsuroerusu Shell Programming and Scripting 2 12-20-2010 04:35 PM
unable to install package on Ubuntu smartgupta Ubuntu 3 11-04-2010 10:30 AM
Remove cluster package agn Solaris 0 08-09-2010 04:26 AM
Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed sankasu Solaris 7 07-30-2010 03:50 AM
Add/Remove package in RHEL 5 ! shipon_97 Red Hat 4 06-28-2009 04:41 PM
Unable to release package administration lock for this system potro Solaris 0 05-28-2009 07:01 AM
Unable to uninstall package in Solaris chrisanto_2000 Solaris 1 06-25-2007 12:20 PM