ESRS Docker: Installation fails with "Syntax error: "("unexpected (expecting "fi")" (User correctable)

Summary: ESRS DE installer fails with syntax error on Ubuntu Server

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms



Trying to install ESRS Docker Edition (ESRS DE) on Ubuntu Linux immediately fails with the following error:

Syntax error: "("unexpected (expecting "fi")

 This has been observed on the following Ubuntu versions:

Ubuntu Server 16.04.3 LTS
Ubuntu Server 17,10,1
 

Cause

The installer script in the ESRS DE package starts bash in POSIX mode. It is unclear what settings on Ubuntu lead to the reported syntax error yet.

Resolution

Change the way the installer starts bash to run. The installer file needs to be editied. Following instructions are for ESRS DE v3.26.00.06. For other versions the size of the file will be different, but the process is the same. The editor used should be vi. It adds a newline at the end of the file, which needs to be truncated. Other editors, like nano, add more characters and/or change some characters in the binary part of the file.

root@ubuntu:~# ls -la ESRS_DE-3.26.00.06.bin
-rwxr-xr-x 1 root root 61696985 Feb 13 08:00 ESRS_DE-3.26.00.06.bin  << original size

root@ubuntu:~# vi ESRS_DE-3.26.00.06.bin                             << change first line to
                                                                                                                                                     << #! /bin/bash


root@ubuntu:~# ls -la ESRS_DE-3.26.00.06.bin
-rwxr-xr-x 1 root root 616969858 Feb 13 08:00 ESRS_DE-3.26.00.06.bin << new size

root@ubuntu:~# truncate -s 616969857 ESRS_DE-3.26.00.06.bin          << cut off last char,

                                                                                                                                                     << newline added by vi

root@ubuntu:~# ls -la ESRS_DE-3.26.00.06.bin
-rwxr-xr-x 1 root root 616969857 Feb 13 08:00 ESRS_DE-3.26.00.06.bin << new, correct size

The installation should now finish without error messages.

Affected Products

Secure Remote Services Virtual Edition

Products

Secure Remote Services Virtual Edition
Article Properties
Article Number: 000063885
Article Type: Solution
Last Modified: 20 Nov 2020
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.