hemil shah writes:
> I am getting following message on Solaris 10 whenever my script file uses 
> packaging commands liek pkgparam and pkgchk "Note. Couldn't lock the package 
> database". This was not the happening with Solaris 9.

I think there are several possible reasons:

  - You're invoking your script without sufficient privileges (usually
    UID root and all privileges for normal system packages) to access
    the database.  As long as you're not making changes, that's
    probably ok.

  - The packaging database you're accessing via -R is located on a
    read-only file system or has similar restrictions on it.

  - Your script is run inside a packaging script, such as a
    class-action script.  It's not possible to invoke pkg* commands
    recursively.

Do any of those apply here?

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to