joaotelles
asked on
pkginfo error - solaris 10
Hi,
Im getting the following error using pkginfo:
root@LAB01-OTA # pkginfo
system FJSVcpcu Fujitsu CPU Performance Counter libraries and utilities
system FJSVcsr Fujitsu PRIMEPOWER SMF script
system FJSVfmd Fujitsu Platform Fault Management Daemon and Utilities
system FJSVhea Fujitsu SunOS Header Files
system FJSVmdb Fujitsu Platform Modular Debugger
system FJSVmdbr Fujitsu Platform Modular Debugger (Root)
system FJSVpiclu Fujitsu PICL Libraries, and Plugin Modules (Usr)
pkginfo: ERROR: pkginfo file is corrupt or missing
System:
SunOS LAB01-OTA 5.10 Generic sun4u sparc SUNW,Sun-Fire-V240
Any suggestion?
Im getting the following error using pkginfo:
root@LAB01-OTA # pkginfo
system FJSVcpcu Fujitsu CPU Performance Counter libraries and utilities
system FJSVcsr Fujitsu PRIMEPOWER SMF script
system FJSVfmd Fujitsu Platform Fault Management Daemon and Utilities
system FJSVhea Fujitsu SunOS Header Files
system FJSVmdb Fujitsu Platform Modular Debugger
system FJSVmdbr Fujitsu Platform Modular Debugger (Root)
system FJSVpiclu Fujitsu PICL Libraries, and Plugin Modules (Usr)
pkginfo: ERROR: pkginfo file is corrupt or missing
System:
SunOS LAB01-OTA 5.10 Generic sun4u sparc SUNW,Sun-Fire-V240
Any suggestion?
You will have to remove/reinstall the package
ASKER
The case is which package'?
The real p[problem was that during a package add the machine booted, so now Im getting the following error:
[11:30:31 AM] Joao Telles: root@LAB01-OTA # pkgadd -d . SUNWj6rt SUNWj6dev SUNWj6cfg SUNWj6man SUNWj6dmo
Processing package instance <SUNWj6rt> from </software/java>
pkgadd: ERROR: PKG parameter is not defined in <>
There are 4 more packages to be installed.
Do you want to continue with package installation? [y,n,?] y
Processing package instance <SUNWj6dev> from </software/java>
JDK 6.0 Dev. Tools (1.6.0_26)(sparc) 1.6.0,REV=2006.11.29.05.57
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
Using </usr> as the package base directory.
## Processing package information.
pkgadd: ERROR: bad entry read in pkgmap
pathname=jdk/instancesR
problem=mode is not numeric.
pkgadd: ERROR: unable to process pkgmap
Installation of <SUNWj6dev> failed (internal error).
No changes were made to the system.
There are 3 more packages to be installed.
Do you want to continue with package installation? [y,n,?] y
NOTE: these pakcages are not installed... since I cant remove them...
The real p[problem was that during a package add the machine booted, so now Im getting the following error:
[11:30:31 AM] Joao Telles: root@LAB01-OTA # pkgadd -d . SUNWj6rt SUNWj6dev SUNWj6cfg SUNWj6man SUNWj6dmo
Processing package instance <SUNWj6rt> from </software/java>
pkgadd: ERROR: PKG parameter is not defined in <>
There are 4 more packages to be installed.
Do you want to continue with package installation? [y,n,?] y
Processing package instance <SUNWj6dev> from </software/java>
JDK 6.0 Dev. Tools (1.6.0_26)(sparc) 1.6.0,REV=2006.11.29.05.57
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
Using </usr> as the package base directory.
## Processing package information.
pkgadd: ERROR: bad entry read in pkgmap
pathname=jdk/instancesR
problem=mode is not numeric.
pkgadd: ERROR: unable to process pkgmap
Installation of <SUNWj6dev> failed (internal error).
No changes were made to the system.
There are 3 more packages to be installed.
Do you want to continue with package installation? [y,n,?] y
NOTE: these pakcages are not installed... since I cant remove them...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
check packages in the /var/sadm/pkg folder. just replace the pkginfo file in corrupt package with a good one from another server.
1. cd /var/sadm/pkg
2.
for i in *
do
echo "========================= ========== ========"
echo $i :
pkginfo -i $i
done
3. Look at the output and find the one that gives the missing or corrupt pkginfo error. You will want the directory the package is in /var/sadm/PKGNAME/pkginfo.
4. Now to fix it there is a couple possibilities:
- you can copy a working version of pkginfo file from another machine to your machine.
- you can try to edit the wrong file.
- you can try to install a newer patch to get a working pkginfo-file.
2.
for i in *
do
echo "=========================
echo $i :
pkginfo -i $i
done
3. Look at the output and find the one that gives the missing or corrupt pkginfo error. You will want the directory the package is in /var/sadm/PKGNAME/pkginfo.
4. Now to fix it there is a couple possibilities:
- you can copy a working version of pkginfo file from another machine to your machine.
- you can try to edit the wrong file.
- you can try to install a newer patch to get a working pkginfo-file.
ASKER
Tks