LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Installed Solaris 11.4, cannot install any packages from the Solaris repository (https://www.linuxquestions.org/questions/solaris-opensolaris-20/installed-solaris-11-4-cannot-install-any-packages-from-the-solaris-repository-4175728553/)

shachter 08-31-2023 02:37 PM

Installed Solaris 11.4, cannot install any packages from the Solaris repository
 
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

TB0ne 09-02-2023 08:49 AM

Quote:

Originally Posted by shachter (Post 6451230)
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.

Bolded a part of what you posted for emphasis only; did you read and understand what you posted??? You said yourself that you did not find/configure a Solaris 11 repository...yet somehow you're surprised you can't access/update/install from the repository you couldn't find or configure???

If you actually read part of the documentation, you might have found your answer: https://docs.oracle.com/cd/E53394_01...html#scrolltoc

::EDIT::
And since you've had Solaris 11.4 working for three years now (and working with Solaris for *SIXTEEN*), it's hard to understand why you don't have experience with it, or why this would be the first time you've tried to install/configure it or the repositories (one of your several other threads where you didn't bother following up):
https://www.linuxquestions.org/quest...is-4175687752/
https://www.linuxquestions.org/quest...ce-4175587527/
https://www.linuxquestions.org/quest...de-4175574335/
https://www.linuxquestions.org/quest...-linux-566987/


All times are GMT -5. The time now is 04:34 AM.