Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pkginfo problem

Status
Not open for further replies.

nyck

Technical User
Joined
Mar 10, 2004
Messages
447
Location
GB
Hello,

when i run a pkginfo on one of my solaris9 boxes i get the following message:-

pkginfo: ERROR: pkginfo file is corrupt or missing

any ideas how i fix this?

cheers

nick
 
Have you another server you can copy a known good one from?
 
try a
truss -o /tmp/truss.out -v all -f pkginfo
and look at the truss.out file. This will tell you which file is missing, because a open(), access() or stat() of this file will fail. TRy to copy the missing tree from another host (if you have something very similar) to fix this; pkginfo files can not be generated...

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Hello,

i have run that truss command and copied across the packages which were causing a problem. But when i run a pkginfo -l i now get the following message:-


pkginfo: ERROR: bad entry read in contents file
pathname: /kernel/drv/sparcv9/devinfo
problem: unable to read content info

is there anyway i can fix this?

cheers

nick
 
Hi Nick. How did you copy the files? If by ftp did you use binary format?
 
hello,

yes i tarred up the directories and ftp'd them across in binary format.

i'm just having a grub round on the interweb to see how i can get past this next issue!

cheers

nick
 
if i restore the whole of /var/sadm/pkg from a backup before i had this issue then would this fix the problem?

cheers

nick
 
Copy SUNWlibm from a good server; if you've got one.

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top