Oracle Solaris Studio Installation Fails With "pkgadd: ERROR: unable to create package object" (Doc ID 1309736.1)

Last updated on AUGUST 03, 2016

Applies to:

Oracle Solaris Studio - Version 12.2 to 12.4 [Release 12]
Oracle Solaris on x86 (32-bit)
Oracle Solaris on SPARC (64-bit)
Oracle Solaris on x86-64 (64-bit)
Oracle Solaris on SPARC (32-bit)

Symptoms

Oracle Solaris Studio 12.2 installation fails.

Error message from the GUI installer:

Errors were encountered during the installation. For more details consult the installation log file: /.nbi/log/20110330101203.log




Error messages in the installer's logfile in the /.nbi/logs directory:

For both the GUI installer and the command line installer, installation fails because of a pkgadd "ERROR: unable to create package object"

[2011-03-22 12:00:06.429]: Caused by: org.netbeans.installer.utils.nativepackages.InstallationException: Error native. Error = Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved. pkgadd: ERROR: unable to create package object </usr/share/man>. unable to fix attributesERROR: attribute verification of </usr/share/man> failed unable to fix attributesInstallation of <SPRO-12u2-studio-bin-links> partially failed.



The installer then attempts a rollback of the failed installation,

[2011-03-22 12:00:06.432]: ... also rollbacking Oracle Solaris Studio(ss-base/12.2.0.0.0)
[2011-03-22 12:00:06.432]: Start rollback of Oracle Solaris Studio(ss-base/12.2.0.0.0)



The rollback, in turn, fails with the same pkgadd error:

[2011-03-22 12:00:06.441]: Caused by: org.netbeans.installer.utils.nativepackages.InstallationException: Error native. Error = Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved. pkgadd: ERROR: unable to create package object </usr/share/man>. unable to fix attributesERROR: attribute verification of </usr/share/man> failed unable to fix attributesInstallation of <SPRO-12u2-studio-bin-links> partially failed.



Error messages on subsequent installation attempts

Error message from the command line installer

# ./SolarisStudio12.2-solaris-x86-pkg-ML.sh --non-interactive
Configuring the installer...
Searching for JVM on the system...
Extracting installation data (can take a while, please wait)...
Running the installer wizard...
/tmp/ossi-lab174-20110330103338.silent.log:
[2011-03-30 10:33:38.338]: WARNING - Oracle Solaris Studio 12.2 was found in /opt
[2011-03-30 10:33:38.339]: ERROR - Installation is not possible. Oracle Solaris Studio could be installed only in /opt However installation location is /opt/solstudio12.2


Error message from the GUI installer:

The Oracle Solaris Studio or Sun Studio 12.2 components are already installed in /opt
Some of this version of Oracle Solaris Studio components are already installed in the following directory. You can install additional components only in this directory.

Changes

The problem can be observed with Oracle Solaris Studio 12.2 on Solaris 10.
The installer in Oracle Solaris Studio 12.3 and newer contains added checks that /usr/share/applications, /usr/share/man and /usr/share/pixmaps are writable, and thus the issue is less likely to occur with Oracle Solaris Studio 12.3 and newer.

The problem cannot be observed with Sun Studio 12 and earlier, which use a different installer technology.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms