LinuxQuestions.org
Help answer threads with 0 replies.
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 03-27-2006, 01:49 PM   #1
babyphil
Member
 
Registered: Jun 2004
Location: Texas
Distribution: Solaris 10 / Slackware 10.1
Posts: 68

Rep: Reputation: 15
unable to reinstall sun studio


I accidently deleted my entire /opt directory and must now replace everything. I have all the disks of sun studio/java studio/java studio creator etc. I have already replaced the lost csw packages (removed from pkg database and reinstalled). However the installer for sun studio will not allow reinstall. It goes throught he entire process without doing anything. There are no permissions errors and the install log returns almost empty.
Please advise.
 
Old 03-27-2006, 02:10 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If you have removed the packages and it stills doesn't want to install them again, I think you need to clean the product registry.

run "prodreg" to see if it still lists Studio packages.

If it does, run prodreg in command line mode (prodreg browse) to identify the UUID of the packages you want to clean.

Then run "prodreg unregister <UUID>" to remove the dangling packages.

See that page for details:

http://docs.sun.com/app/docs/doc/819...4m1vlj7?a=view
 
Old 03-28-2006, 03:30 AM   #3
babyphil
Member
 
Registered: Jun 2004
Location: Texas
Distribution: Solaris 10 / Slackware 10.1
Posts: 68

Original Poster
Rep: Reputation: 15
Thank you, that worked perfectly for all but one of the packages:

I have unregistered/reinstalled all of my packages except the App server and what came with it.

# prodreg browse
BROWSE # +/-/. UUID # NAME
======== ======== ==================================== == ===================
1 - root 1 System Registry
2 + a01ee8dd-1dd1-11b2-a3f2-0800209a5b6b 1 Solaris 10 System Software
3 + 8f64eabf-1dd2-11b2-a3f1-0800209a5b6b 1 Unclassified Software
4 + Sun Java System Application Server Platform Edition 1
5 + 9da0f2c0-0e08-10dd-c1de-0800209b793b 1 Sun Studio 9 IDE for Solaris
6 + 56f00640-0e08-10dd-c1de-0800209b793b 1 Sun Studio 10 Documentation Set
7 + 6e5cba80-0e08-10dd-c1de-0800209b793b 1 Sun Studio 10 Sun Performance Library
8 + 85e7f340-0e08-10dd-c1de-0800209b793b 1 Sun Studio 10 Source Distribution

as you can see the App server platform has an extremely odd UUID and no name.
the standard syntax doesn't apply, or at least won't work.

in the gui this error comes up when I try to uninstall

Exception in thread "Thread-4" java.lang.NullPointerException
at com.sun.prodreg.util.Utils.getInstalledPkgs(Utils.java:482)
at com.sun.prodreg.core.InteractiveUninstaller.run(InteractiveUninstaller.java:242)
at java.lang.Thread.run(Thread.java:595)

Is there a way tp directly edit a config file or something? The installer will not allow a new install with those entries still there. perhaps /var/sadm/install/productregistry?

Last edited by babyphil; 03-28-2006 at 03:43 AM.
 
Old 03-28-2006, 06:45 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Well, the productregistry is a simple text file (xml), you can try removing manually the faulty entries, at your own risks

The file is there: /var/sadm/install/productregistry

Of course, save a copy before attempting any modification.
 
Old 03-28-2006, 12:04 PM   #5
babyphil
Member
 
Registered: Jun 2004
Location: Texas
Distribution: Solaris 10 / Slackware 10.1
Posts: 68

Original Poster
Rep: Reputation: 15
Ok, I did so, and it worked.
Thank you for your help.
 
  


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
Unable to use modem on sun ultra 80 shrdlu Linux - Hardware 0 02-06-2006 09:17 AM
sun studio 11 qerf Linux - Newbie 1 11-22-2005 05:12 AM
Not buying Sun Studio. gcc? cc? bleah Solaris / OpenSolaris 3 02-22-2005 04:28 PM
DISPLAY problem installing sun one studio on Fedora Core 2 kstev715 Linux - Software 0 08-15-2004 04:33 PM
Sun One Studio opafire Fedora 2 11-08-2003 12:30 AM

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

All times are GMT -5. The time now is 12:20 PM.

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