Solaris 10 - pkgadd

Hi,

Im getting the following error:
 #  pkgadd -d ./rsync-3.0.8-sol10-sparc-local

The following packages are available:
  1  SMCrsync     rsync
                  (sparc) 3.0.8

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!
joaotellesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:
Hi

There is another pkg_ process running.

do this:
ps -ef | grep pkg_

Then kill if you find any.
If you don't know how, then post the output of the above command.

If you find nothing, then try a reboot.
joaotellesAuthor Commented:
Hi,

# ps -ef | grep pkg_
    root 28663 28373   0 09:15:33 pts/7       0:00 grep pkg_

Any other suggestion?

Tks
Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:


Delete all *pkg* files in your /tmp folder.
I looks like an installation crashed, so it didn't delete the temporary files.

# rm /tmp/*pkg*
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

joaotellesAuthor Commented:
Just to add:
Tried also to:

# rm /var/sadm/install/.lockfile
# rm /tmp/.ai.pkg.zone.lock-<xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx>

but everutime I try to run the pkgadd again I get the .ai.pkg.zone.lock-<xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx> created again..

See ls command below at /tmp:
# ls -la
total 1108
drwxrwxrwt  15 root     sys         2615 Jul 22 09:23 .
drwxr-xr-x  42 root     root        1536 Apr 29 17:01 ..
drwx------   2 root     root         175 Jul 16 07:06 .AgentSockets
-rw-rw-rw-   1 root     root      116236 Apr 29 17:58 .Perflib
drwxrwxr-x   2 root     root         176 Apr 29 17:59 .X11-pipe
drwxrwxr-x   2 root     root         176 Apr 29 17:59 .X11-unix
-rw-r-lr--   1 root     root           0 Jul 22 09:22 .ai.pkg.zone.lock-afdb66cf-1dd1-11b2-a049-000d560ddc3e
drwxrwxrwt   2 root     root         117 Jun 30 23:27 .oracle
-rw-r--r--   1 oraclea  dbaa           0 Jul  1 13:19 changePerm_err.log
-rw-r-----   1 oraclea  dbaa         736 Jul  1 14:13 cpuinfo.txt
-rw-------   1 oraclea  dbaa           0 Jul  1 12:49 crontab.12308
-rw-------   1 oraclea  dbaa           0 Jun 30 23:53 crontab.28274
drwxr-xr-x   2 dpa      dpgrpa      1107 Jul 22 09:20 hsperfdata_dpa
drwxr-x---   2 oraclea  dbaa         117 Jul  1 14:48 hsperfdata_oraclea
drwxr-----   2 oramon   dbaa         117 Apr 29 17:59 hsperfdata_oramon
drwxr-xr-x   2 root     root         240 Jul 18 14:13 hsperfdata_root
-rw-r-----   1 oraclea  dbaa           3 Jul  1 14:13 isainfo.txt
-rw-r-----   1 oraclea  dbaa          72 Jul  1 14:13 kernelarchver.txt
-rw-r--r--   1 oraclea  dbaa          57 Jul  1 06:11 mfile20916
-r--r--r--   1 root     root           0 Jul 16 07:06 mib2agt.log
-rw-r-----   1 oraclea  dbaa       99876 Jul  1 14:13 patchinfo.txt
-rw-r-----   1 oraclea  dbaa      147292 Jul  1 14:13 pkginfo.txt
-rw-r-----   1 oraclea  dbaa        7609 Jul  1 13:19 restrict_sort.lst
-rw-r--r--   1 dpa      dpgrpa         0 Apr 30 01:30 rotate.log
drwxr-xr-x   3 root     root         180 Jul  6 13:46 screens
-rw-------   1 oraclea  dbaa         101 Jun 18 04:01 sh10464.1
-rw-------   1 dpa      dpgrpa      1488 Jul 16 07:06 sh179150
---S--sr--   1 root     root           0 Apr 29 17:59 ssmon.err
---S--sr--   1 root     root           0 Apr 29 17:59 ssmon.out
---S--sr--   1 root     root           0 Apr 29 17:59 ssserver.err
---S--sr--   1 root     root           0 Apr 29 17:59 ssserver.out
-rw-r-----   1 oraclea  dbaa          90 Jul  1 14:13 swapinfo.txt
-rw-r--r--   1 root     root        6504 Jun 10 16:55 tracadoTec.cap
drwxrwxrwx   4 dpa      dpgrpa       245 Jul  1 23:49 uscreens
drwx------   2 root     root         117 Apr 29 17:59 vx.024234.160023.165000.3118
drwx------   2 root     root         117 Apr 29 17:59 vx.156404.165007.103400.3369
drwx------   2 root     root         117 Apr 29 17:59 vx.167306.102266.041400.3007


Also:
# cd /var/sadm/install
# ls -la
total 47516
dr-xr-xr-x   5 root     bin          512 Jul 22 09:22 .
drwxr-xr-x  15 root     sys          512 Aug 16  2010 ..
-rw-r--r--   1 root     root           0 Jul 16 07:06 .door
drwxr-xr-x   2 root     other        512 Dec 15  2005 Storage_ADE
dr-xr-xr-x   2 root     bin          512 Nov  6  2009 admin
-rw-r--r--   1 root     root     24089039 Dec 29  2010 contents
-rw-r--r--   1 root     root         735 Feb  8  2010 gz-only-packages
dr-xr-xr-x   2 root     bin         1024 Dec 29  2010 logs
-rw-r--r--   1 root     root      188599 Nov  6  2009 productregistry

Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:
Try a different package, and lets see if the problem is related to that specific package, or the package manager.
joaotellesAuthor Commented:
The same package worked in another machine of the cluster...

So its not a package issue...
Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:

Are you running Solaris 10 Sparc ?
joaotellesAuthor Commented:
Yes.
cat /etc/release
                       Solaris 10 5/09 s10s_u7wos_08 SPARC
           Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 30 March 2009
Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:
Download the file again.

It must have corrupted somehow.

Everything else looks fine.
joaotellesAuthor Commented:
The thing is whenever I run the pkg the file -rw-r-lr--   1 root     root           0 Jul 22 09:22 .ai.pkg.zone.lock-afdb66cf-1dd1-11b2-a049-000d560ddc3e is re-created at the /tmp...

Doesnt this mean that the problem is not with the okg file...?

Anyway I will try to DL the file again...

Tks
joaotellesAuthor Commented:
No lucky with the new download....

As I mentioned before the same package worked in a similar machine...

Is there any other way to check if there is any pkgadd stucked?
Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:
except for the running process.

it should be:

ps -ef | grep pkg

did you reboot ?
joaotellesAuthor Commented:
No I didnt reboot... actually I cant reboot this machine....
Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:
Do you have enough space available on /tmp and /usr ?

Try adding -v to the command, and see if it tells you what the problem is.

pkgadd -vd ./rsync-3.0.8-sol10-sparc-local

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hossamshaabanCommented:

i think there is another process of pkgadd try the following command:
# ps -eaf|grep pkg|grep -v grep|awk '{print $2}'|xargs kill -9
joaotellesAuthor Commented:
Tks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.