Fixed package error for Solaris 11.4 CBE

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Kaytro

Currently breaking things...
Feb 24, 2015
14
9
3
34
Just thought I would leave this fix here for the internet.

I ran into an issue with Solaris 11.4 CBE where none of the packages would update or install from the default repository.

Someone at Oracle changed something and the default package repository moved.

Example Error to help google:

root@localhost:~# pkg update --accept
No updates available for this image.


WARNING: Errors were encountered when attempting to retrieve package
catalog information. Packages added to the affected publisher repositories since
the last retrieval may not be available.

Errors were encountered when attempting to contact repository for publisher 'solaris'.

Unable to contact valid package repository: https://pkg.oracle.com/solaris/support/
Encountered the following error(s):
Framework error: code: E_SSL_CONNECT_ERROR (35) reason: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
URL: 'https://pkg.oracle.com/solaris/support'


Anyway here is the fix

pkg set-publisher -P -g https://pkg.oracle.com/solaris/support solaris
 
Last edited:

gea

Well-Known Member
Dec 31, 2010
3,156
1,195
113
DE
I suppose the problem is that the support repository requires a support contract,
only the release repository is free for Solaris 11.4 cbe

To use the release repository, enter:
Code:
pkg set-publisher -G'*' -g http://pkg.oracle.com/solaris/release/ solaris
 
Last edited:

Kaytro

Currently breaking things...
Feb 24, 2015
14
9
3
34
I suppose the problem is that the support repository requires a support contract,
only the release repository is free for Solaris 11.4 cbe

To use the release repository, enter:
Code:
pkg set-publisher -G'*' -g http://pkg.oracle.com/solaris/release/ solaris

I guess what I mean to say is that I was used to the original 11.4 install ISO not needing any modifications for the package repository to work versus the CBE ISO needing the modification.

But with all my google searching I didn't find the error I received. Hopefully this thread helps someone in the future. With the same "issue".

But thank you for the better command.
 

gea

Well-Known Member
Dec 31, 2010
3,156
1,195
113
DE
I got the framework error only with the Solaris 11.4 cbe iso and found the following info:


https://blogs.oracle.com/solaris/po...ce-software-on-oracle-solaris-114-cbe-release

Accidentally, the package publisher was left pointing to the support repository which is not publicly available.

One has to change it to the solaris/release publisher so that we can install packages from the public repository. If you do not do that, you would get an SSL handshake error when trying to install any new package. So, change the publisher now:


Code:
root@sol-cbe:~# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F https://pkg.oracle.com/solaris/support/

root@sol-cbe:~# pkg set-publisher -G'*' -g http://pkg.oracle.com/solaris/release/ solaris
 
  • Like
Reactions: Freebsd1976

Kaytro

Currently breaking things...
Feb 24, 2015
14
9
3
34
Welp. Nothing came up when I searched the error before. Now this thread shows up. Hopefully it helps someone in the future