NetBackup Client fails to install with "ERROR: Failed to install SYMCnbclt on " and "pkgadd: ERROR: checkinstall script did not complete successfully"
Problem
NetBackup UNIX client receives an error and fails to install NetBackup client package (SYMCnbclt) since it cannot open and write to the NetBackup temporary directory being used for the installation.
Error Message
Veritas NetBackup Client Installation Log, shows the following:
Symantec Installation ScriptCopyright 1993 - 2016 Symantec Corporation, All Rights Reserved. Installing NetBackup Client Software
Please review the SYMANTEC SOFTWARE LICENSE AGREEMENT located on the installation media before proceeding. The agreement includes details on the NetBackup Product Improvement Program. For NetBackup installation and upgrade information specific to your platform and to find out if your installed EEBs or hot fixes are contained in this release, check out the Symantec Operations ReadinessTools (SORT) Installation and Upgrade Checklist and Hot fix and EEB Release Auditor, respectively, at https://sort.symantec.com/netbackup.
Do you wish to continue? [y,n] (y)
Checking for required system conditions...ok be_nb_same_host: inapplicable on solaris: skipping ok unsupported_platform: Passed checks for unsupported platforms.
Checking for recommended system conditions...ok
hotfix_auditor: No potential for regression of hotfixes or EEBs was detected between current version and 7.7.2.
Do you want to install the NetBackup client software for this client? [y,n] (y)
This package will install Solaris/Solaris10 client.
This package will install NetBackup client 7.7.2.
Enter the name of the NetBackup master server : nbumaster8
Would you like to use "non_compliant_RFC-1123_hostname" as the configured name of the NetBackup client? [y,n] (y) n
Enter the name of this NetBackup client : nbuclient7
Client binaries are located in /mnt/NBU/NBU-7.7.2-base/client/base/unix-linux/NBClients/anb/Clients/usr/openv/netbackup/client/Solaris/Solaris10.Starting NetBackup Deduplication installertesting: /NBU_TEMP/pdde_pkg_dir_25908Checking for SYMCpddea package... Package SYMCpddea found.NetBackup Deduplication software is installed.
NetBackup Deduplication is not yet configured.NetBackup Deduplication preinstall check passedSaving client binaries for Solaris/Solaris10.Installing PBX... Same version is already installed. Nothing to upgrade for package VRTSpbxInstallation log located here: /var/tmp/installpbx-26338-070717104857.logUnpacking SYMCnbclt package.
Checking for pre-existing SYMCnbclt package.Installing SYMCnbclt package.
ERROR: Failed to install SYMCnbclt on nbuclient7. Cannot complete the install. Aborting...
========== Unpacking package ==========
x SYMCnbclt.pkg, 518492160 bytes, 1012680 tape blocksx .pkg_defaults, 191 bytes, 1 tape blocks== Checking for pre-existing package ==package SYMCnbclt is not installed
========= Installing package ==========
Processing package instance <SYMCnbclt> from </NBU_TEMP/nb_pkg/SYMCnbclt.pkg>NetBackup Client(sparc) 7.7.2.0
## Executing checkinstall script.Copyright 1993 - 2016 Symantec Corporation, All Rights Reserved.
/NBU_TEMP/install/checkinstall: /NBU_TEMP/install/checkinstall: cannot open
pkgadd: ERROR: checkinstall script did not complete successfullyInstallation of <SYMCnbclt> failed.
No changes were made to the system.
ERROR: A failure was detected running /mnt/NBU/NBU-7.7.2-base/client/base/unix-linux/NBClients/anb/Clients/usr /openv/netbackup/client/Solaris/Solaris10/cp_to_client nbumaster8 nbumedia8 nbuclient7 /tmp/install_trace.25758File /usr/openv/tmp/install_trace.25758 contains a trace of this install.
That file can be deleted after you are sure the install was successful.
Cause
The temporary directory (e.g. /NBU_TEMP) for the NetBackup installation did not have the required write permissions.
Example:
root@nbclient8 ~ > ls -ld /NBU_TEMPdr-xr-xr-x 2 root sys 265 July 7 10:48 /NBU_TEMP
Solution
Change the temporary directory for the NetBackup installation to have the required write permissions (drwxrwxrwt). This includes /tmp, /var/tmp, and any other temporary directories created to be used for the installation (e.g. /NBU_TEMP).
Example:
root@nbclient8 ~ > chmod 1777 /NBU_TEMP
root@nbclient8 ~ > ls -ld /NBU_TEMPdrwxrwxrwt 2 root sys 265 July 7 13:25 /NBU_TEMP