Daily Archives: April 7, 2014

Error while Installing the Client Agent on Ubuntu and Debian Linux – unexpected operator

Errors like this:

/opt/CA/ABuagent/uagentsetup: 74: [: -e: unexpected operator
/opt/CA/ABcmagt/caagent: 60: cd: can’t cd to /nls
/opt/CA/ABcmagt/caagent: 60: cd: can’t cd to /nls
/opt/CA/ABcmagt/caagent: 60: cd: can’t cd to /nls
/opt/CA/ABcmagt/aglang_setup: 60: [: -e: unexpected operator
/opt/CA/ABcmagt/caagentsetup: 54: [: -e: unexpected operator

While installing CA Arcserve R16.5, can be resolve by changing /bin/sh linking from dash to bash.

You can check the linking of /bin/sh, with this commands:

ls –l /bin/sh

If you get:

lrwxrwxrwx 1 root root 4 Feb  7 19:41 /bin/sh -> dash

You have this problem.
Change the linking is easy, just reconfigure dash

dpkg-reconfigure dash

Select No, to Install dash as /bin/sh

Once this is changed you should be able to install the agent or start the agent fine.

 

 

 

 

CA ArcServe16.5 under Debian X64bit

  1. First install 32bit libs.
    apt-get install g++-multilib
  2. Then get the DEB’s files, from the cdrom
    mount /dev/cdrom /mnt
    cd /mnt/datamoverandagent/linux
    dpkg -i *.deb

    If you get errors like this: /opt/CA/ABcmagt/aglang_setup: 60: [: -e: unexpected operator.
    See here: http://kennethdalbjerg.dk/2014/04/07/error-while-installing-the-client-agent-on-ubuntu-and-debian-linux-unexpected-operator

  3. Run these commands
    /opt/CA/ABcmagt/caagentsetup
    /opt/CA/ABcmagt/caagent_autostrtstop
  4. Run this command to start R16.5 CA Agent.
    /etc/init.d/bab_agent start