Unable to remove package in Solaris-10


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to remove package in Solaris-10
# 8  
Old 08-07-2013
Have you tried removing it from the non-globals first then from the global?
# 9  
Old 08-07-2013
Yes. Stopped services on both, deleted lock files from both, tried removing it from non-global zone first, but no luck.
This is production box, so I want to try all possible things before going with downtime for reboot.
# 10  
Old 08-07-2013
in that case, do ...
Code:
cd /var/sadm/pkg
ls -d stubborn_pkg
rm -rf stubborn_pkg

if unsure of the process, rename the stubborn_pkg directory to something else and recheck with pkginfo -l stubborn_pkg to confirm that the process works ...
# 11  
Old 08-08-2013
It did not helped. It is still looking for some instance
Code:
root@pqdb_s50:# mv /var/sadm/pkg/ILMT-TAD4D-agent /var/sadm/pkg/ILMT-TAD4D-agent.old
root@pqdb_s50:# pkgrm ILMT-TAD4D-agent
pkgrm: ERROR: no package associated with <ILMT-TAD4D-agent>
root@pqdb_s50:# pkgadd -d ILMT-TAD4D-agent-7.5.0.111-solaris-sparc64
The following packages are available:
  1  ILMT-TAD4D-agent     ILMT-TAD4D-agent
                          (sparc64) 7.5.0.111
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
## Waiting for up to <300> seconds for package administration commands to become available (another user is administering packages)
pkgadd: ERROR: ERROR: Unable to acquire package administration lock for this system; try again later
pkgadd: ERROR: Unable to lock this zone for administration
1 package was not processed!
root@pqdb_s50:#

# 12  
Old 08-08-2013
run kill -9 $(ps -ef | grep pkgadd | grep -v grep | awk '{print $2}') prior to running pkgadd as well as remove any lockfiles ...

check for any other pkg processes and then retry pkgadd again if none found ...
# 13  
Old 08-08-2013
There is no pkg process alive, I checked with "ps -ef". But I can see a lock file in /tmp
Code:
.ai.pkg.zone.lock-afdb66cf-1dd1-11b2-a049-000d560ddc3e

I remove it and then try pkgrm. It again fails and when I checked /tmp, a new lock file gets created.
# 14  
Old 08-08-2013
run truss on the pkgadd (see code below) in a different window to see if there is anything there that can give you a hint on what is going on ...
Code:
truss -p $(ps -ef | grep pkgadd | grep -v grep | awk '{print $2}')

if still nothing, you may have to actually reboot both the non-global zone and then the host before you retry the pkgadd again ...

if still nothing, then i would suggest giving oracle support a call as your issue may be os-related ...
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