Unable to remove package in Solaris-10


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to remove package in Solaris-10
# 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.
Code:
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.
# 6  
Old 08-06-2013
Try pkgrm -G (remove on the current zone only).
# 7  
Old 08-06-2013
It doesn't recognize switch
Code:
/# pkgrm -G ILMT-TAD4D-agent
pkgrm: illegal option -- G
usage:
        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 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