This discussion is archived
14 Replies Latest reply: Nov 14, 2013 8:12 AM by Dave Miner RSS

Problem in running dry run to update package

VinayKumar14 Newbie
Currently Being Moderated

I am running command 'pkg update -nv' command to list all the installed and missing packages. I have newly configured SUN OS and when running command 'pkg update -nv' I am getting message "No updates available for this image.". But Definitely this is not the case and some packages are required .

 

For example I uninstalled below 2 packages and checked their info :

 

pkg info -r crypto/pwgen

          Name: crypto/pwgen

       Summary: Easy to memorize password generator

   Description: pwgen is a password generator for creating passwords which can

                be easily memorized by a human.

      Category: Applications/System Utilities

         State: Not installed

     Publisher: solaris

       Version: 2.6 (2.06)

Build Release: 5.11

        Branch: 0.175.1.0.0.24.0

Packaging Date: September  4, 2012 05:06:20 PM

          Size: 67.39 kB

          FMRI: pkg://solaris/crypto/pwgen@2.6,5.11-0.175.1.0.0.24.0:20120904T17                                                                                                                      0620Z

root@abc:~# pkg info -r text/gawk

          Name: text/gawk

       Summary: GNU awk

   Description: The awk utility interprets a special-purpose programming

                language that makes it possible to handle many data-reformatting

                jobs with just a few lines of code.

      Category: Applications/System Utilities

         State: Not installed

     Publisher: solaris

       Version: 3.1.8

Build Release: 5.11

        Branch: 0.175.1.0.0.24.0

Packaging Date: September  4, 2012 05:44:14 PM

          Size: 2.68 MB

          FMRI: pkg://solaris/text/gawk@3.1.8,5.11-0.175.1.0.0.24.0:20120904T174                                                                                                                      414Z

root@sunset1:~#

 

 

After that running the command again gives the same result. So, looks like something going wrong here. Anyone has any idea ?

  • 1. Re: Problem in running dry run to update package
    Pascal Kreyer - Oracle Expert
    Currently Being Moderated

    Nothing is wrong. If you uninstall packages, then pkg will never update it if you use the "update" option..

    The update option is there just to update installed packages and not to install all packages. Please read the man of pkg command for more details.

     

    If you want help to determine why your system doesn't update packages, please share these informations :

     

    # pkg publisher -a

    # pkg info entire

    # pkg list -fa

  • 2. Re: Problem in running dry run to update package
    VinayKumar14 Newbie
    Currently Being Moderated

    Before this I was working on express edition and there I was getting list of even those packages which are not installed . Like this :

     

    ------------------------------------------------------------------------------------------------------

            Packages to remove:   2
           Packages to install:   3
            Packages to update:   4
           Mediators to change:     1
    Estimated space available: 113.50 GB

    Estimated space to be consumed:   7.19 GB

       Create boot environment:   Yes
    Activate boot environment:   Yes
    Create backup boot environment:    No
          Rebuild boot archive:   Yes

     

    Changed mediators:

      mediator java:

           version: None -> 1.6 (system default)

     

    Changed packages:

    solaris

      SUNWcsd

    0.5.11,5.11-0.151.0.1:20101105T001142Z -> None

      consolidation/gnome/gnome-incorporation

    0.5.11,5.11-0.151.0.1:20101105T053409Z -> None

      system/io/fc/fc-san-management

    None -> 0.5.11,5.11-0.175.0.10.1.0.0:20120918T163201Z

      system/io/fc/fc-scsi

    None -> 0.5.11,5.11-0.175.0.10.1.0.0:20120918T163203Z

      system/io/fc/ip-over-fc

    None -> 0.5.11,5.11-0.175.0.10.1.0.0:20120918T163208Z

      x11/xkill

    1.0.2,5.11-0.151:20101026T201451Z -> 1.0.3,5.11-0.175.0.0.0.0.1215:20110927T130037Z

      x11/xlock

    0.5.11,5.11-0.151:20101026T201453Z -> 0.5.11,5.11-0.175.0.0.0.0.1215:20110927T130052Z

      x11/xmag

    1.0.3,5.11-0.151:20101026T201455Z -> 1.0.4,5.11-0.175.0.0.0.0.1215:20110927T130107Z

      x11/xvidtune

    1.0.2,5.11-0.151:20101026T201502Z -> 1.0.2,5.11-0.175.0.0.0.0.1215:20110927T130200Z

     

     

    You you will see this list has all detail , like installed packages, packages for which updates available and packages which are not installed as well.

     

    But I am not getting such list with 11.1 version

  • 3. Re: Problem in running dry run to update package
    VinayKumar14 Newbie
    Currently Being Moderated

    root@sunset1:~# pkg publisher -a

    PUBLISHER                   TYPE     STATUS P LOCATION

    solaris                     origin   online F http://pkg.oracle.com/solaris/release/

    root@sunset1:~# pkg info entire

              Name: entire

           Summary: Incorporation to lock all system packages to the same build

       Description: This package constrains system package versions to the same

                    build.  WARNING: Proper system update and correct package

                    selection depend on the presence of this incorporation.

                    Removing this package will result in an unsupported system.

          Category: Meta Packages/Incorporations

             State: Installed

         Publisher: solaris

           Version: 0.5.11

    Build Release: 5.11

            Branch: 0.175.1.0.0.24.2

    Packaging Date: September 19, 2012 07:01:35 PM

              Size: 5.46 kB

              FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.1.0.0.24.2:20120919T190135Z

     

     

    There is long list of third command.

  • 4. Re: Problem in running dry run to update package
    Pascal Kreyer - Oracle Expert
    Currently Being Moderated

    Definitively, the "No updates available for this image" message is correct. The only updates that we provide for Solaris 11.1 is in the support repository. Please use the support repository or wait until Solaris 11.2 availability.

  • 5. Re: Problem in running dry run to update package
    VinayKumar14 Newbie
    Currently Being Moderated

    OK ... Thanks.

     

    We tried to set support repository as publisher but we are getting below message :

     

    ----------------------------------------------------------------------------------------

     

    root@sunset1:~# pkg set-publisher -k /var/pkg/ssl/Oracle_Solaris_11_Support.key.pem -c /var/pkg/ssl/Oracle_Solaris_11_Support.certificate.pem -g https://pkg.oracle.com/solaris/support/ -G http://pkg.oracle.com/solaris/release/ solaris

    https protocol error: code: 401 reason: Unauthorized

    URL: 'https://pkg.oracle.com/solaris/support'

    Additional Details:

     

    This account is not entitled to access this repository. Ensure that the correct

    certificate is being used and that the support contract for the product being

    accessed is still valid.

     

    -----------------------------------------------------------------------------------

     

    Since we are able to download key and certificate for oracle support repository , we assume we have valid support contract account ID. Any idea what could be reason for this.

     

    Thanks

  • 6. Re: Problem in running dry run to update package
    Pascal Kreyer - Oracle Expert
    Currently Being Moderated

    If you tried the last 4 days, please try again. We had an outage during the week-end and yesterday.

  • 7. Re: Problem in running dry run to update package
    VinayKumar14 Newbie
    Currently Being Moderated

    I tried just now, But still same message.

  • 8. Re: Problem in running dry run to update package
    Pascal Kreyer - Oracle Expert
    Currently Being Moderated

    Then in this case please open a service request.

  • 9. Re: Problem in running dry run to update package
    VinayKumar14 Newbie
    Currently Being Moderated

    Hi PascalKreyer,

     

       I am trying to download key and certificate from another account , but in bracket against Oracle Solaris 11 Support we are getting "not available".

     

      Oracle Solaris 11 Support (not available) 

     

     

    Any idea if Is it licensing issue or some server is down?

  • 10. Re: Problem in running dry run to update package
    Pascal Kreyer - Oracle Expert
    Currently Being Moderated

    Servers are up. We had just two week-ends ago an issue.

    This error is more an error with the contract.

     

    I will recommend again to open a service request in MOS to check why you cannot obtain updates. The key and certificate are maybe expired or not more authorized to access support packages.

  • 11. Re: Problem in running dry run to update package
    VinayKumar14 Newbie
    Currently Being Moderated

    Hi,

      Thanks for all your help.

     

    I have been able to configured oracle support repository and able to get update list from "pkg update -nv" command.

     

    Now , I want to configure this server as repository for other servers which don't have internet access. I have set this server as publisher for other server. Please let me know if "pkg update -nv" command will work for such scenario.  If it will not work , how I can get list of missing and update package from local repository.

     

    Thanks

  • 12. Re: Problem in running dry run to update package
    Pascal Kreyer - Oracle Expert
    Currently Being Moderated

    No, you cannot. If you want to run this command for "non-connected" machine, you must build a repository in your network.

     

    More details there :Copying and Creating Oracle Solaris 11.1 Package Repositories - Copying and Creating Oracle Solaris 11.1 Package Reposit…

     

    And for the SRUs, please check MOS Doc ID 1501435.1 and specially the ISO Image reference. The readme file for the ISO image explains how you can build a repository with the SRU content.

  • 13. Re: Problem in running dry run to update package
    VinayKumar14 Newbie
    Currently Being Moderated

    Hi Pascal,

     

       One more query !!!

     

    I have now Oracle Solaris version 11.1 and have configured repository with SRU content as per MOS Doc ID 1501435.1.

     

    Now when checking package status using "pkg update -nv", for one package 'compress/gzip' status is

    compress/gzip

        1.4,5.11-0.175.1.0.0.24.0:20120904T170603Z -> 1.4,5.11-0.175.1.3.0.1.0:20121208T032546Z

     

    It means installed package is 1.4,5.11-0.175.1.0.0.24.0:20120904T170603Z and latest available update version is 1.4,5.11-0.175.1.3.0.1.0:20121208T032546Z.

     

    also this using command 'pkg update -u' , this package is getting listed :

    NAME (PUBLISHER)                              VERSION                IFO
    compress/gzip                                 1.4-0.175.1.0.0.24.0   i--

     

     

    But when trying to update this package to version 1.4,5.11-0.175.1.3.0.1.0:20121208T032546Z  , I am getting message :

    root@sunset1:/var/sadm# pkg install compress/gzip@1.4,5.11-0.175.1.3.0.1.0:20121208T032546Z

    Creating Plan (Solver setup): |

    pkg install: No matching version of compress/gzip can be installed:

      Reject:  pkg://solaris/compress/gzip@1.4,5.11-0.175.1.3.0.1.0:20121208T032546Z

      Reason:  This version is excluded by installed incorporation pkg://solaris/consolidation/userland/userland-incorporation@0.5.11,5.11-0.175.1.0.0.24.0:20120904T170613Z

     

    Can you please explain why this version is excluded and if its excluded for this version of Oracle solaris , why its being listed when running dry run for pkg update.

     

    Thanks

    Vinay

  • 14. Re: Problem in running dry run to update package
    Dave Miner Explorer
    Currently Being Moderated

    It is generally unsupported to attempt to install specific packages from an SRU rather than updating to that SRU completely. The message is telling you that you're attempting to update to SRU 3's gzip package but you have only the 11.1 GA release installed generally.  You should do a general "pkg update" and you'll obtain the new gzip as well as the rest of the SRU.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points