ESRS Docker: Installation fails with "Syntax error: "("unexpected (expecting "fi")" (User correctable)
Podsumowanie: ESRS DE installer fails with syntax error on Ubuntu Server
Ten artykuł dotyczy
Ten artykuł nie dotyczy
Ten artykuł nie jest powiązany z żadnym konkretnym produktem.
Nie wszystkie wersje produktu zostały zidentyfikowane w tym artykule.
Objawy
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
Przyczyna
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.
Rozwiązanie
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.
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.
Produkty, których dotyczy problem
Secure Remote Services Virtual EditionProdukty
Secure Remote Services Virtual EditionWłaściwości artykułu
Numer artykułu: 000063885
Typ artykułu: Solution
Ostatnia modyfikacja: 20 lis 2020
Wersja: 2
Znajdź odpowiedzi na swoje pytania u innych użytkowników produktów Dell
Usługi pomocy technicznej
Sprawdź, czy Twoje urządzenie jest objęte usługą pomocy technicznej.