LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-31-2023, 02:37 PM   #1
shachter
Member
 
Registered: Jul 2007
Posts: 101

Rep: Reputation: 2
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

Last edited by shachter; 08-31-2023 at 02:39 PM.
 
Old 09-02-2023, 08:49 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,671

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by shachter View Post
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/

Last edited by TB0ne; 09-02-2023 at 08:59 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
Ubuntu Maverick live CD repository packages not found / adding packages to repository phed0ra Linux - Newbie 1 01-10-2012 03:00 AM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. stioanid Linux - Software 3 12-13-2008 01:22 AM
Package Kit Error-- "Cannot retrieve repository metadata (repomd.xml) for repository" mbvpixies78 Linux - Newbie 11 08-22-2008 07:20 PM
Sort installed packages by # of dependant packages installed brianez21 Debian 1 01-18-2006 05:06 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration