1 Reply Latest reply: May 7, 2013 10:16 AM by swalker RSS

    pkg: Origin already exists for the specified publisher.

    1004259
      Hello all,

      I'm having some troubles with a solaris machine (solaris 11).
      I tried to install on it Oracle EM Ops Center which asked for 3 packages to be installed as pre-req.

      /library/perl-5/xml-parser
      /developer/build/make
      /system/xopen/xcu4

      I installed them with 'pkg install <exact name from list>'.
      I then continued with the install of the EM Ops Center but I cancelled it and then uninstalled what was installed until then.

      Now when I try to install the EM Ops Center again, the installer shows me the three packages as not installed and needed as pre-requisites.
      When I try to installed them again with the 'pkg install ...' command I keep getting this message:

      pkg: Origin 'http://localhost:1008/solaris/bb6f1695d4a56c82ba90619297346d3659d11416/' already exists for the specified publisher.


      root@emop:~/xvmoc_full_bundle# pkg install /library/perl-5/xml-parser
      pkg: Origin 'http://localhost:1008/solaris/bb6f1695d4a56c82ba90619297346d3659d11416/' already exists for the specified publisher.
      root@emop:~/xvmoc_full_bundle# pkg install /developer/build/make
      pkg: Origin 'http://localhost:1008/solaris/bb6f1695d4a56c82ba90619297346d3659d11416/' already exists for the specified publisher.
      root@emop:~/xvmoc_full_bundle# pkg install /system/xopen/xcu4
      pkg: Origin 'http://localhost:1008/solaris/bb6f1695d4a56c82ba90619297346d3659d11416/' already exists for the specified publisher.
      root@emop:~/xvmoc_full_bundle# pkg uninstall /library/perl-5/xml-parser
      pkg: Origin 'http://localhost:1008/solaris/bb6f1695d4a56c82ba90619297346d3659d11416/' already exists for the specified publisher.
      root@emop:~/xvmoc_full_bundle# pkg publisher
      pkg: Origin 'http://localhost:1008/solaris/bb6f1695d4a56c82ba90619297346d3659d11416/' already exists for the specified publisher.

      What can I do in this situation ? I want to install those packages (if they are indeed not installed). It seems that everything I try with pkg returns this message.

      Any help would be appreciated.

      Thank you in advance.

      Sorin M.
        • 1. Re: pkg: Origin already exists for the specified publisher.
          swalker
          It sounds like your image configuration is in an inconsistent state.

          The simplest option would be to boot to an old boot environment or to revert '/' to an older ZFS snapshot.

          If neither of those are acceptable options, you'll have to open /var/pkg/pkg5.image with a text editor (such as vim, vi, emacs, etc.) and remove any lines or quoted values that contain 'http://localhost'. You should create a backup of that file before editing it.

          After removing those references, you should then be able to run 'pkg publisher' and verify the configuration information.

          You can then use the 'set-publisher' command to add back the default Solaris repository origins using the examples found in pkg(1).