2 Replies Latest reply on Feb 9, 2018 2:51 PM by Andrew Watkins

    Solaris 11.4 Beta: update problem: pkg: Could not complete the operation because of insufficient permissions

    Andrew Watkins

      Hello,

       

      Have a few problems upgrading a old Sun Ultra 24 to 1.4. I have done a fresh install and it does work and I have done an upgrade on another server with no problem. I would like to see if I can get the upgrade to work on my work station before I have to rebuild from scratch.

       

      I have already been pointed to the release notes since I was not doing the command correctly in the first place:

       

      # pkg update --accept --be-name 11.4.0 --ignore-missing \

      --reject system/input-method/ibus/anthy \

      --reject system/input-method/ibus/pinyin \

      --reject system/input-method/ibus/sunpinyin \

      --reject system/input-method/library/m17n/contrib \

      entire@latest

       

      But, still no luck:

      ...

             Packages to remove: 227
             Packages to install: 289
             Packages to update: 814
             Packages to change:   1
             Mediators to change:   9
         Create boot environment: Yes

      Create backup boot environment:  No

      DOWNLOAD                            PKGS     FILESXFER (MB)   SPEED
      Completed                      1331/1331 123587/1235872155/2155  1.1M/s
      PHASE                                      ITEMS
      Removing old actions                 101829/101829
      Installing new actions                16096/103142

      The running system has not been modified. Modifications were only made to a clone of the running system.  This clone is mounted at /tmp/tmpqJQ1kk should you wish to inspect it.

      pkg: Could not complete the operation because of insufficient permissions.

      Please try the command again as a privileged user.

       

      # tail /var/pkg/history/20180207T161208Z-01.xml

      pkg://solaris/developer/build/automake-111@1.11.2,5.11-11.4.0.0.0.12.0:20180103T021315Z -> pkg://solaris/developer/build/automake-111@1.11.2,5.11-11.4.0.0.0.12.0:20180103T021315Z

      ]]></end_state><errors><error><![CDATA[Traceback (most recent call last):

        File "/usr/lib/python2.7/vendor-packages/pkg/client/api.py", line 2811, in execute_plan

          self._img.imageplan.execute()

        File "/usr/lib/python2.7/vendor-packages/pkg/client/imageplan.py", line 4777, in execute

          e.filename)

      PermissionsException:

      Could not complete the operation because of insufficient permissions.

      Please try the command again as a privileged user.]]></error></errors></operation></history>

       

      # pkg publisher

      PUBLISHER                   TYPE     STATUS P LOCATION

      solarisstudio               origin   online F https://pkg.oracle.com/solarisstudio/release/

      solaris                     origin   online F http://localhost/

      localhosts11                origin   online F http://sfe.opencsw.org/localhosts11/

       

      I have removed all packages except (solaris). Any debug I could use to see where it may be going wrong?

       

      Thanks,

       

      Andrew