This content has been marked as final. Show 1 reply
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).