Carbon Black Cloud: Running install.sh generates a error messages
search cancel

Carbon Black Cloud: Running install.sh generates a error messages

book

Article ID: 291482

calendar_today

Updated On:

Products

Carbon Black Cloud Endpoint Standard (formerly Cb Defense)

Issue/Introduction

When trying to install the Carbon Black Cloud sensor agent on Linux, you might encounter one of the following error messages 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

  1. Verify the location of install.sh:
    • Use “CD” to change your path to where the agent installation package was uncompress.
    • Run “LS” and confirm that the install.sh is present.
  2. 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
  3. Use “sh” (if necessary):
    • Your 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 explain in How Install Linux Sensor using install.sh