Summary - Installing packages inside a zone

From: Monappallil, George <george.monappallil_at_rpfl.com>
Date: Thu Oct 18 2007 - 13:53:59 EDT
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@sunmanagers.org'
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@sunmanagers.org'
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@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Oct 18 13:54:16 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:07 EST