1846713 Members
3271 Online
110256 Solutions
New Discussion

swinstall error

 
Kevin_107
Regular Advisor

swinstall error

When trying to list installed software/Patches I am getting issued the following...

# swlist -l product
# Initializing...
# Contacting target "unix1"...
ERROR: The expected depot or root does not exist at "/".
ERROR: There is currently no installed software on host "unix1" at
location "/".


Any Ideas Gents/Ladies ??
He who laughs last.....doesnt get the joke !!
14 REPLIES 14
Pete Randall
Outstanding Contributor

Re: swinstall error

Try stopping and restarting the swagentd:

/sbin/init.d/swagentd stop
/sbin/init.d/swagentd start

Pete

Pete
Kevin_107
Regular Advisor

Re: swinstall error

Tried that..still the same error message
He who laughs last.....doesnt get the joke !!
Jose Mosquera
Honored Contributor

Re: swinstall error

Hi,

Do you have configured appropriately your /etc/resolv.conf and/or /etc/nsswitch.conf files?

Rgds.
Bill Hassell
Honored Contributor

Re: swinstall error

Most likely, some sysadmin has removed (very serious) or renamed (fixable) /var/adm/sw. Since this directory can grow quite large, it is one of the first 'big directories' to be removed when /var fills up. But it is crucial to software management. You'll need to recover that directory. Note that swlist (and friends) may create a basic /var/adm/sw setup (minimum = /var/adm/queue) which must be replaced with the 'real' /var/adm/sw/queue.


Bill Hassell, sysadmin
Steven E. Protter
Exalted Contributor

Re: swinstall error

A stock March 2002 11.11 OS install does not install a nsswitch.conf

swagent will not run under these circumstances.

There are several nsswitch files in the /etc directory.

One of them needs to be copied or renamed to be nsswitch.conf

Then stop and start swagent.

Then swlist and the other SD-UX utilities will work.

Here is mine.

hosts: dns[notfound=continue unavail=continue tryagain=continue] files

That's all.

Give it a shot, you got good advice on the earlier posts.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kevin_107
Regular Advisor

Re: swinstall error

Sorry chaps but I have tried all the above with still no joy...The /var/adm/sw files and subdirectories are there..
and modified my nsswitch.conf
He who laughs last.....doesnt get the joke !!
Armin Feller
Honored Contributor

Re: swinstall error

Hi,

you have to do following. Edit the '/var/adm/sw/defaults' file by commenting out the following entry:
swinstall.use_alternate_source= true

then re-start swagentd.

Regards ...
Armin


Kevin_107
Regular Advisor

Re: swinstall error

Armin..
There are no lines to comment out of the default file!
He who laughs last.....doesnt get the joke !!
Ravi_8
Honored Contributor

Re: swinstall error

Hi,

one more, can you give a try

#/usr/sbin/swagentd -r
never give up
Stanimir
Trusted Contributor

Re: swinstall error

Hi!
It seem your hostname is alright.
Please try:
#swlist -l product @ unix1:/
and:
#swlist -l depot
and show us the result.
Regards,Stan
Andi Rigauer
Regular Advisor

Re: swinstall error

take a look into you /etc/hostfile and look if the information for the localhost is the right one
Good Luck Brgds
Andi
god, root where's the difference
Alex Glennie
Honored Contributor

Re: swinstall error

This error is usually caused by the INDEX file being corrupt or removed. The "master" INDEX file contains the product definitions for all the installed software on the system. It is located in /var/adm/sw/products.

First, make a backup copy of the INDEX file (if it exists). If problems are encountered, this file can be moved back into place, and the product definitions will be restored to their former state.

To rebuild the INDEX file, use the following procedure which will install a "fake" product on the system. During the installation of this product, the INDEX file will be regenerated.


# cd /var/adm/sw/products
# mv INDEX INDEX.orig
# cd /tmp
# vi void.psf
product
tag void
fileset
tag void
:wq!
# swpackage -s /tmp/void.psf
# swinstall void
# swremove void
# rm void.psf
# swremove -d void


Now there should be a new INDEX file under /var/adm/sw/products and the swlist command will show the installed products.
The IPD Installed Products Database will be up to date.





MANOJ SRIVASTAVA
Honored Contributor

Re: swinstall error

what about the hostanem resoultion can you do a nslookup properly ?


Manoj Srivastava
Jose Mosquera
Honored Contributor

Re: swinstall error

Hi again,

Let me insist in your /etc/nsswitch.conf and resolv.conf files!

You are having a name resolution trouble, for any circuntance swinstall do not achive contact with your "unix1" host name!

Are you ussing DNS, /etc/hosts, NIS file or all of them?

An example of nsswitch.conf file is:
hosts: dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] files [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return]

Have you configured appropriately your /etc/resolv.conf file?