pkgadd fails when installing Solaris 8 patches


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers pkgadd fails when installing Solaris 8 patches
# 1  
Old 09-24-2006
Data pkgadd fails when installing Solaris 8 patches

Hi, guys !
I usually run this task without even thinking on outcome, because it never failed. But this time when I tried installation of patches for Solaris 8 OS on my old machine, I received this message:

"pkgadd: ERROR: no packages were found in </var/spool/pkg>"

I compared the contents of /var/spool/pkg with machines I worked on previosly, and the folder is also empty on them, but patches are installed ok.

Any good ideas what I need to check?

Another thing: I faced strange problems with packages when I failed to install the Sun Studio 8 software on this machine. For some reason the installation fails, and I wonder if any of you have had this problem, or might have some ideas what I could do to install the sw ?

Here is the error message I receive:

Extracting the tar files...
Do you want to remove the download tar files? [y/n]: n
Move download tar files to ./save_tarfiles directory.
./installer[517]: cd: bad argument count
Exception in thread "main" java.lang.NoClassDefFoundError: install_j2se


Thanks !
# 2  
Old 09-24-2006
pkgadd fails when installing Solaris 8 patches

Hi, guys !
I usually run this task without even thinking on outcome, because it never failed. But this time when I tried installation of patches for Solaris 8 OS on my old machine, I received this message:

"pkgadd: ERROR: no packages were found in </var/spool/pkg>"

I compared the contents of /var/spool/pkg with machines I worked on previosly, and the folder is also empty on them, but patches are installed ok.

Any good ideas what I need to check?

Another thing: I faced strange problems with packages when I failed to install the Sun Studio 8 software on this machine. For some reason the installation fails, and I wonder if any of you have had this problem, or might have some ideas what I could do to install the sw ?

Here is the error message I receive:

Extracting the tar files...
Do you want to remove the download tar files? [y/n]: n
Move download tar files to ./save_tarfiles directory.
./installer[517]: cd: bad argument count
Exception in thread "main" java.lang.NoClassDefFoundError: install_j2se


Thanks !
# 3  
Old 09-24-2006
Deicide5997,
Please do cross post in different forums. I have merged your threads.
# 4  
Old 09-24-2006
You use patchadd to install patches, not pkgadd.
If it is a package you are trying to install, run:
Code:
# pkgadd -d . yourpackage.pkg

in the same directory your package is.
# 5  
Old 09-24-2006
My bad.
I have actually tried both. THe initial problem was of course when I tried 'patchadd'. Here is the error message I received:

root# patchadd 108434-15

/usr/sbin/patchadd[10]: cd: bad argument count
Usage: basename [ path [ suffix-pattern ] ]


So the strange thing is in both cases (patchadd and installation of SunStudio8) I receive the "cd: bad argument count" thing. What could that mean ?
Any ideas ?
D
# 6  
Old 09-24-2006
Quote:
Originally Posted by System Shock
You use patchadd to install patches, not pkgadd.
If it is a package you are trying to install, run:
Code:
# pkgadd -d . yourpackage.pkg

in the same directory your package is.

This is not correct. To install a streamed package in the same directory the command is :
Code:
pkgadd -d PKGname.pkg [ PKGname | all ]

to install a filesystem package the command is
Code:
pkgadd -d . [ PKGname | all ]

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Pkgadd failures with Solaris 11

I have some simple package installations that have worked in previous versions of Solaris just fine. I can install the packages, then install newer versions right over the top without error. In previous versions I had to specify the -G option during the installation in order for this to work. ... (0 Replies)
Discussion started by: moondog25
0 Replies

2. Solaris

pkgadd will not install solaris studio 12.3

I downloaded Solaris 10 OS on x86, SVR4 installer to my desktop and ran digest -a md5 on the downloaded file and the hash values matched. I then ran bunzip2 followed by pkgadd -d SolarisStudio12.3-solaris-x86-pkg and am getting the following error: pkgadd: ERROR: attempt to process... (14 Replies)
Discussion started by: twk
14 Replies

3. Solaris

pkgadd with admin fine (solaris 10)

Hi, I am trying to install a simple gcc package on a sparc (solaris 10) machine using the admin file (called admtest), but it is not working. I am getting the "Select package prompt". Can anyone have a look at it and tell me what am i doing wrong. # cat admtest mail=root... (5 Replies)
Discussion started by: Mack1982
5 Replies

4. Solaris

Variable not expanding during Solaris pkgadd

I'm having a little trouble with a Solaris package build/install. I have the following entries in my prototype file... # Interfaces file - all versions installed and auto linked to installation type... f none $OPTDIR/config/interfaces.DEV 0444 $OWNER $GROUP f none... (0 Replies)
Discussion started by: JerryHone
0 Replies

5. UNIX Desktop Questions & Answers

Solaris 10 - Compiling package from source? Different from pkgadd?

Hey everyone, I'm using a SPARC based Solaris 10 5/09 machine and want to install PHP support to it. I already have mysql and apache( came with OS, just started the proccess) installed, so this is the last thing before I can get to learning development :) However, there's something I'm not sure... (1 Reply)
Discussion started by: agummad
1 Replies

6. Solaris

pkgadd missing on Solaris 11

Hi, This is not a question thread, but rather a solution to an issue I have encountered on Solaris 11. It turns out that pkgadd is not available by default on Solaris 11. The solution is to install it with: pkg install SUNWpkgcmdsI hope this will save people some time. Cheers, ... (4 Replies)
Discussion started by: JVerstry
4 Replies

7. UNIX for Dummies Questions & Answers

Installing Patches in HPux

Hi admins.... I want to install 100 Patches in Hpux.. is it possible to install using single command.... if possible ple give me the solution... (1 Reply)
Discussion started by: Prem
1 Replies

8. Solaris

Installing patches

I downloaded solaris's patchmanager program, analyzed my system and it spewed out a list of probably around 75 patches that needed to be installed. First off is it nessacary to install all of these? Should I install all of these in single user mode. Is the "smpatch update" command the best to... (7 Replies)
Discussion started by: meyersp
7 Replies

9. Solaris

Installing patches

I'm attempting to install a Sun patch and keep getting an error: # patchadd /tmp/patches/110722-03 Checking installed patches... One or more patch packages included in 110722-03 are not installed on this system. Patchadd is terminating. # How can I find out what are the "One or... (7 Replies)
Discussion started by: FredSmith
7 Replies

10. Shell Programming and Scripting

Installing Patches from a script

Hello all, I'm hoping someone might be able to help me here. After installing Solaris, we use a script to copy site sepcific files over the machine. Now I want the script add the appropiate Sun patches as well. As the script hits that part it errors out, now the script finishes but the Patch... (3 Replies)
Discussion started by: viRaven
3 Replies
Login or Register to Ask a Question