Summary - Installing packages inside a zone



My non-global zone was a sparse root zone and hence I wasn't able to
install packages in the /usr directory.
Thanks to all who pointed me to this and also some links that were
certainly helpful.

However, I tried to install the package in the global zone hoping that
the non-global zone would inherit the files installed under /usr. But I
get almost similar errors. See below.

****************
# pkgadd -d ./zlib-1.2.3-sol10-sparc-local

The following packages are available:
1 SMCzlib zlib
(sparc) 1.2.3

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
## Verifying package <SMCzlib> dependencies in zone <zone-xxx>

Conflict checking issues for package <SMCzlib> on zones <zone-alpha,
zone-beta, zone-nagios>.

Do you want to continue with the installation of <SMCzlib> [y,n,?]

attribute change for /usr/local/bin <package> on SMCzlib <zone>

..
..
..

****************



________________________________

From: Monappallil, George
Sent: Wednesday, October 17, 2007 10:43 AM
To: 'sunmanagers@xxxxxxxxxxxxxxx'
Subject: Installing packages inside a zone


Guys:
I see the following errors when installing packages inside a zone after
logging into a zone and issuing the pkgadd command. For some reason the
pkgadd command is looking at the files installed int eh global zone and
complaining about package conflicts. Also it complains about not able to
create directory under /usr/local. Any ideas why

For example when installing the xpm package, I get the following error.
*************************
# pkgadd -d ./xpm-3.4k-sol10-sparc-local

The following packages are available:
1 SMCxpm xpm
(sparc) 3.4k

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance <SMCxpm> from
</export/home/a140388/xpm-3.4k-sol10-sparc-local>

xpm(sparc) 3.4k
GROUPE BULL
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
/usr/local/bin <attribute change only>
/usr/local/doc <attribute change only>
/usr/local/lib <attribute change only>
/usr/local/man <attribute change only>
/usr/local/man/man1 <attribute change only>

Do you want to install these conflicting files [y,n,?,q]
## Checking for setuid/setgid programs.

Installing xpm as <SMCxpm>

## Installing part 1 of 1.
pkgadd: ERROR: unable to create package object </usr/local/bin>.
unable to fix attributes
/usr/local/bin <attribute change only>
/usr/local/bin/cxpm
pkgadd: ERROR: unable to open </usr/local/bin/cxpm> for writing: (30)
Read-only file system
/usr/local/bin/sxpm
pkgadd: ERROR: unable to open </usr/local/bin/sxpm> for writing: (30)
Read-only file system
pkgadd: ERROR: unable to create package object </usr/local/doc>.
unable to fix attributes
/usr/local/doc <attribute change only>
pkgadd: ERROR: unable to create package object </usr/local/doc/xpm>.
pathname does not exist
unable to create directory
/usr/local/doc/xpm/CHANGES
pkgadd: ERROR: unable to create directory </usr/local/doc/xpm>: (30)
Read-only file system
pkgadd: ERROR: unable to open </usr/local/doc/xpm/CHANGES> for writing:
(30) Read-only file system
/usr/local/doc/xpm/COPYRIGHT
..
..
..
..
******************

-g


________________________________

From: Monappallil, George
Sent: Wednesday, October 17, 2007 10:43 AM
To: 'sunmanagers@xxxxxxxxxxxxxxx'
Subject: Installing packages inside a zone


Guys:
I see the following errors when installing packages inside a zone after
logging into a zone and issuing the pkgadd command. For some reason the
pkgadd command is looking at the files installed int eh global zone and
complaining about package conflicts. Also it complains about not able to
create directory under /usr/local. Any ideas why

For example when installing the xpm package, I get the following error.
*************************
# pkgadd -d ./xpm-3.4k-sol10-sparc-local

The following packages are available:
1 SMCxpm xpm
(sparc) 3.4k

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance <SMCxpm> from
</export/home/a140388/xpm-3.4k-sol10-sparc-local>

xpm(sparc) 3.4k
GROUPE BULL
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
/usr/local/bin <attribute change only>
/usr/local/doc <attribute change only>
/usr/local/lib <attribute change only>
/usr/local/man <attribute change only>
/usr/local/man/man1 <attribute change only>

Do you want to install these conflicting files [y,n,?,q]
## Checking for setuid/setgid programs.

Installing xpm as <SMCxpm>

## Installing part 1 of 1.
pkgadd: ERROR: unable to create package object </usr/local/bin>.
unable to fix attributes
/usr/local/bin <attribute change only>
/usr/local/bin/cxpm
pkgadd: ERROR: unable to open </usr/local/bin/cxpm> for writing: (30)
Read-only file system
/usr/local/bin/sxpm
pkgadd: ERROR: unable to open </usr/local/bin/sxpm> for writing: (30)
Read-only file system
pkgadd: ERROR: unable to create package object </usr/local/doc>.
unable to fix attributes
/usr/local/doc <attribute change only>
pkgadd: ERROR: unable to create package object </usr/local/doc/xpm>.
pathname does not exist
unable to create directory
/usr/local/doc/xpm/CHANGES
pkgadd: ERROR: unable to create directory </usr/local/doc/xpm>: (30)
Read-only file system
pkgadd: ERROR: unable to open </usr/local/doc/xpm/CHANGES> for writing:
(30) Read-only file system
/usr/local/doc/xpm/COPYRIGHT
..
..
..
..
******************
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Installing packages inside a zone
    ... I see the following errors when installing packages inside a zone after ... For example when installing the xpm package, ... Read-only file system ...
    (SunManagers)
  • Re: adding pkgs to non-global zones
    ... new parameters in the pkginfo file within the package. ... the package can be installed in a local zone only. ... For installing in the global zone only you have to use the "-G" option then. ...
    (comp.unix.solaris)
  • Summary: A Raid manager 6.22.1 issue with Solaris 2.6 on E3000
    ... I will be installing 4.5FP6 BS on this machine so if there ... SUNWosafw Open Storage Array Firmware ... SUNWosamn Open Storage Array Man Pages ... Using as the package base directory. ...
    (SunManagers)
  • A Raid manager 6.22.1 issue with Solaris 2.6 on E3000
    ... SUNWosafw Open Storage Array Firmware ... SUNWosamn Open Storage Array Man Pages ... Using as the package base directory. ... Installing Open Storage Array Firmware as ...
    (SunManagers)
  • Re: NBC: Internet security question
    ... I've read good things about both Zone Alarm's Internet Security ... package and Kaspersky's Internet Security package I know that the new ... Windows users who connect to the Interwebs via broadband should both have a/v protection and consider a firewall. ...
    (rec.music.artists.springsteen)