Operating System - HP-UX
1833758 Members
2083 Online
110063 Solutions
New Discussion

swlist shows no installed packages

 
SOLVED
Go to solution
Steven Gloer
Occasional Contributor

swlist shows no installed packages

One of my HP-UX 11.00 servers comes up with the following message when I run swlist with no options:

ERROR: The expected depot or root does not exist at "/".
ERROR: There is currently no installed software on host "dbserv1" at
location "/".

Any ideas of why it's responding like this?
Is there some kind of file swlist refers to when it tries to list installed software that I need to check for?
"D-d-d-dumbass"
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: swlist shows no installed packages

Looks like your INDEX file in /var/adm/sw/products has been deleted or corrupted. If anyone deleted this directory by mistake, get it recovered from the backups.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Helen French
Honored Contributor

Re: swlist shows no installed packages

Charles McCary
Valued Contributor

Re: swlist shows no installed packages

Hi - looks like your target is not defined, could be a dns issue - make sure the your system is listed in /etc/hosts and that it's not a dns issue, can you ping your system name?
Sridhar Bhaskarla
Honored Contributor
Solution

Re: swlist shows no installed packages

Another work around is to install any product that doesn't affect the system. It will build the IPD again. I would reinstall a product that is already there like a PatchText.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ceesjan van Hattum
Esteemed Contributor

Re: swlist shows no installed packages

Your default depot or target is set to / instead of
the normal defaults.. therefor it cannot connect to a depot.

First look at /var/adm/sw/defaults. The file is normally set
to default empty.

look at defaults (/usr/lib/sw/sys.defaults):
# swcopy.distribution_source_directory = /var/spool/sw
# swinstall.distribution_source_directory = /var/spool/sw
# swpackage.distribution_source_directory = /var/spool/sw
# swacl.distribution_target_directory = /var/spool/sw
# swcopy.distribution_target_directory = /var/spool/sw
# swlist.distribution_target_directory = /var/spool/sw
# swmodify.distribution_target_directory = /var/spool/sw
# swpackage.distribution_target_directory = /var/spool/sw
# swreg.distribution_target_directory = /var/spool/sw
# swremove.distribution_target_directory = /var/spool/sw
# swverify.distribution_target_directory = /var/spool/sw

Check your config for irregularities (like "/").
Regards,
Ceesjan
Helen French
Honored Contributor

Re: swlist shows no installed packages