Installed Solaris 11.4, cannot install any packages from the Solaris repository
by shachter from LinuxQuestions.org on (#6EBQV)
Esteemed Colleagues:
I have installed Solaris 11.4, and cannot install any packages (e.g., "pkg install solaris-desktop") from the Solaris repository.
I have scrupulously attempted to follow the instructions in https://docs.oracle.com/cd/E53394_01...html#scrolltoc. The first deviation of the documentation from the reality, is in step 1c, where it says "Find the Oracle Solaris 11 Support repository". When I logged in to https://pkg-register.oracle.com/register/repos/ it did not show me the Solaris 11 Support repository. It only showed me Oracle Studio and Oracle Cluster Solaris 4 (which I did successfully activate, parenthetically).
I did successfully download a valid certificate.pem and key.pem (otherwise I could not have activated ha-cluster). I forged ahead to step 2, where I encountered another deviation of the documentation from the reality. When I typed the command shown, it failed with the error "Origin 'https://pkg.oracle.com/solaris/support/' already exists for the specified publisher." I have determination thru experimentation that there are two ways you can eliminate this error message, and replace it with another one. You can eliminate the -g option and its parameter, and then you get the error message
pkg: 0/1 catalogs successfully updated:
https protocol error: Unknown error code: 401 reason: Unauthorized
URL: 'https://pkg.oracle.com/solaris/support/solaris/catalog/1/catalog.attrs'
(If you put that URL in the address bar of a browser, parenthetically, it says "Secure Connection Failed".)
The second way you can eliminate the "Origin already exists" error, and replace it with another, is to add "-G '*'" to the options. Usually you get the same "Unauthorized" error as before. But sometimes -- I cannot reliably reproduce it, it seems to happen randomly -- you get a much longer message:
The origin URIs for 'solaris' do not appear to point to a valid pkg repository.
Please verify the repository's location and the client's network configuration.
Additional details:
Unable to contact valid package repository: https://pkg.oracle.com/solaris/support
Encountered the following error(s):
Transport errors encountered when trying to contact repository.
Reported the following errors:
https protocol error: Unknown 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 produce being
accessed is still valid.
The license agreement required to access this repository has not been
accepted yet or the license agreement for the product has changed. Please go to
https://pkg-register.oracle.com and accept the license for the product you are
trying to access.
But -- as I mentioned above -- when I go to https://pkg-register.oracle.com I do not see Solaris, I only see Oracle Studio and Oracle Solaris Cluster 4. And, while writing this post, I went and successfully accepted Oracle Studio (but I cannot install developerstudio-126, it seems to depend on things in the solaris package, from which I cannot install things).
So, how do I access the solaris package, so I can install, e.g. solaris-desktop (inasmuch as the Solaris 11.4 installation doesn't even give you a graphical interface)? It truly does not seem like I am asking for too great a thing.
Thank you in advance for any and all replies.
Jay Shachter
I have installed Solaris 11.4, and cannot install any packages (e.g., "pkg install solaris-desktop") from the Solaris repository.
I have scrupulously attempted to follow the instructions in https://docs.oracle.com/cd/E53394_01...html#scrolltoc. The first deviation of the documentation from the reality, is in step 1c, where it says "Find the Oracle Solaris 11 Support repository". When I logged in to https://pkg-register.oracle.com/register/repos/ it did not show me the Solaris 11 Support repository. It only showed me Oracle Studio and Oracle Cluster Solaris 4 (which I did successfully activate, parenthetically).
I did successfully download a valid certificate.pem and key.pem (otherwise I could not have activated ha-cluster). I forged ahead to step 2, where I encountered another deviation of the documentation from the reality. When I typed the command shown, it failed with the error "Origin 'https://pkg.oracle.com/solaris/support/' already exists for the specified publisher." I have determination thru experimentation that there are two ways you can eliminate this error message, and replace it with another one. You can eliminate the -g option and its parameter, and then you get the error message
pkg: 0/1 catalogs successfully updated:
https protocol error: Unknown error code: 401 reason: Unauthorized
URL: 'https://pkg.oracle.com/solaris/support/solaris/catalog/1/catalog.attrs'
(If you put that URL in the address bar of a browser, parenthetically, it says "Secure Connection Failed".)
The second way you can eliminate the "Origin already exists" error, and replace it with another, is to add "-G '*'" to the options. Usually you get the same "Unauthorized" error as before. But sometimes -- I cannot reliably reproduce it, it seems to happen randomly -- you get a much longer message:
The origin URIs for 'solaris' do not appear to point to a valid pkg repository.
Please verify the repository's location and the client's network configuration.
Additional details:
Unable to contact valid package repository: https://pkg.oracle.com/solaris/support
Encountered the following error(s):
Transport errors encountered when trying to contact repository.
Reported the following errors:
https protocol error: Unknown 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 produce being
accessed is still valid.
The license agreement required to access this repository has not been
accepted yet or the license agreement for the product has changed. Please go to
https://pkg-register.oracle.com and accept the license for the product you are
trying to access.
But -- as I mentioned above -- when I go to https://pkg-register.oracle.com I do not see Solaris, I only see Oracle Studio and Oracle Solaris Cluster 4. And, while writing this post, I went and successfully accepted Oracle Studio (but I cannot install developerstudio-126, it seems to depend on things in the solaris package, from which I cannot install things).
So, how do I access the solaris package, so I can install, e.g. solaris-desktop (inasmuch as the Solaris 11.4 installation doesn't even give you a graphical interface)? It truly does not seem like I am asking for too great a thing.
Thank you in advance for any and all replies.
Jay Shachter