4 Replies Latest reply on Jan 4, 2017 10:27 PM by sleepyweasel

    pkgadd doesn't install package on local zones

    3157944

      Hi,

      i tried to install SUNWdoc package on global zone and i hoped that the package will be installed on all local zone as well, but it didn't. I am not sure where is problem exactly. There is some output what i got:

       

      ## Installing part 1 of 1.

      pkgadd: ERROR: unable to create package object </usr/man>.

          file type <s> expected <d> actual

          unable to remove existing directory at </usr/man>

      /usr/man <symbolic link>

      pkgadd: ERROR: unable to create package object </usr/man>.

          file type <s> expected <d> actual

          unable to remove existing directory at </usr/man>

      [ verifying class <none> ]

      ## Executing postinstall script.

       

       

      Installation of <SUNWdoc> partially failed.

      ## Interrupted: package <SUNWdoc> not installed in any non-global zones

       

      Hove someone idea how to fix it please?

        • 1. Re: pkgadd doesn't install package on local zones
          Gurudatta N.R-Oracle

          Hi ,

           

          Good day, Could you give us more information on host operating information,  and kernel information.

           

          pkgadd -d  pkgname (should work. )

           

          Adding a Package to the Global Zone and to All Non-Global Zones

          To add a package to the global zone and to all non-global zones, execute the pkgadd utility in the global zone. As the global administrator, run pkgadd without the -G option.

          A package can be added to the global zone and to all non-global zones without regard to the area affected by the package.

          The following steps are performed by the pkgadd utility:

           

          Regards

          Gurudatta N.R

          • 2. Re: pkgadd doesn't install package on local zones
            3157944

            Hi,

            information is here:

             

            Release: 5.10

            Kernel architecture: sun4v

            Application architecture: sparc

            Hardware provider: Oracle Corporation

            Domain:

            Kernel version: SunOS 5.10 Generic_150400-07

             

            I guess that i ran the command properly - from global zone as root, without -G.

             

            pkgadd -d /path/of/package SUNWdoc

             

            ---

             

            I checked if my package (when i dig from solaris 10 iso) was created correctly, and it seems that yes:

             

            pkgparam -d /tmp/ SUNWdoc SUNW_PKG_ALLZONES

            true

            • 3. Re: pkgadd doesn't install package on local zones
              3157944

              fixed...

               

               

              root@server # pkgchk -l -p /usr/man

              Pathname: /usr/man

              Type: symbolic link

              Source of link: ./share/man

              Referenced by the following packages:

                      SUNWman        SUNWdoc       

              Current status: installed

               

               

              root@server # mv /usr/man /usr/man_backup

              root@server # ln -s /usr/share/man /usr/man

              root@server # ls -l /usr/man

              lrwxrwxrwx   1 root     root          14 Jan  4 15:26 /usr/man -> /usr/share/man

              • 4. Re: pkgadd doesn't install package on local zones
                sleepyweasel

                I suspect you are trying to install this package in a sparse zone.  /usr is shared, so you would not be able to install there.  Is it installed on the global?  If not, and you install it there, it should install on the global. 

                 

                Note that I don't have a Solaris 10 system with a zone running on it to verify the above.