Carbon Black Cloud Endpoint Standard (formerly Cb Defense)Carbon Black Cloud Enterprise EDR
Issue/Introduction
When trying to install the Carbon Black Cloud sensor agent on Linux, one of the following error messages may be encountered while running the install.sh script:
-bash: !1: event not found
install.sh: command not found
-bash: cb-psc-install/install.sh: No such file or directory
Environment
Carbon Black Linux Sensor: 2.6.0 and Higher
Linux: All Supported Versions
Cause
These errors indicate that the shell cannot locate the install.sh script. This might be due to:
Typos in the command (e.g., missing space).
Incorrect capitalization (Linux is case-sensitive).
Incorrect directory.
(Less likely) A requirement for using sh to run the script.
Resolution
Verify the location of install.sh:
Use “CD” to change the path to where the agent installation package was uncompressed.
Run “LS” and confirm that the install.sh is present.
Verify that install.sh has execute permission:
Run “ls -l”. The output should show the script with "execute" permission for the user running the installation (indicated by an "x" in the permissions column).
An example output with correct permissions would be:
-rwxrwxr-x 1 user group 33743 Jan 26 15:19 install.sh
Use “sh” (if necessary):
The system might require using sh explicitly to run the script. Try the following command:
sh ./install.sh <COMPANY_CODE>
Additional Information
If install.sh is missing or lacks execute permissions, this is an indication that the installer might be corrupt. In this case, it's recommended to redownload the Carbon Black Cloud sensor installer package and extract it as mentioned here.