Support Portal

Error installing LLS on Linux Ubuntu 22.04 - OpenSSL

Linux Ubuntu 22.04 supports OpenSSL-3 as a standard, and not OpenSSL-1. Installing LLS on Ubuntu 22.04 may therefore return an error of missing libraries libssl and libcrypto, since OpenSSL-1 is being used by the application. In this article we explain how to fix this installation issue.
Related Products
CODE-LOC
LiDAR-LOC

Table of Contents

Introduction

The Linux Ubuntu 22.04 system incorporates OpenSSL version 3 as a default standard, replacing OpenSSL version 1. Consequently, during the installation of LLS on Ubuntu 22.04, an error might occur, indicating missing libraries such as libssl and libcrypto. This is due to LLS being only compatible with OpenSSL-1. This article provides a detailed guide on how to fix this installation issue.

Error description


The following message is displayed in the Ubuntu terminal whenever trying to install LLS:

 

root@aesick:~/Downloads $ sudo bash lidarloc_installer.sh

 

(Reading database ... 127809 files and directories currently installed.)

 

Preparing to unpack .../lidarloc_2.4.1.13R_arm64.deb ...

 

Unpacking lidarloc (2.4.1.13R) over (2.4.1.13R) ...

 

Setting up lidarloc (2.4.1.13R) ...

 

run config

 

Installing SICKAppEngine.

 

Kill running SICK AppEngine process

 

AppEngine: no process found

 

Backup user config file

 

Set capabilities for SICK AppEngine binary and make it executable

 

Install linker configuration

 

Restore user config file license container already installed

 

Network server is active

 

Reloading services.

 

Disabled sick_lidarloc service on bootup.

 

Starting sick_lidarloc service.

 

Is service sick_lidarloc active:

 

failed

 

dpkg: error processing package lidarloc (--install):

 

 installed lidarloc package post-installation script subprocess returned error exit status 3

 

Errors were encountered while processing:

 

lidarloc

And sick_lidarloc.service status is:

— sick_lidarloc.service - SICK LiDAR Localization Software

     Loaded: loaded (/lib/systemd/system/sick_lidarloc.service; enabled; preset: enabled)

     Active: failed (Result: exit-code) since Mon 2024-01-15 18:48:13 CEST; 2min 7s ago

   Duration: 3ms

   

    Process: 2668 ExecStartPre=/usr/bin/timeout 30s /bin/sh -c until /bin/netstat -l4ptn | /bin/grep '0.0.0.0:22350'; do : ; done (code=exited, >

    Process: 2672 ExecStart=/opt/sick/SICKAppEngine/AppEngine -config /opt/sick/SICKAppEngine/userconfig.yml (code=exited, status=127)

   Main PID: 2672 (code=exited, status=127)

        CPU: 8ms

 

Jan 15 18:48:13 aesick systemd[1]: Starting sick_lidarloc.service - SICK LiDAR Localization Software...

Jan 15 18:48:13 aesick systemd[1]: Started sick_lidarloc.service - SICK LiDAR Localization Software.

Jan 15 18:48:13 aesick systemd[1]: sick_lidarloc.service: Main process exited, code=exited, status=127/n/a

Jan 15 18:48:13 aesick systemd[1]: sick_lidarloc.service: Failed with result 'exit-code'.

Check for missing libraries

Check the missing libraries by running the following commands (to display the shared libraries needed by SICK AppEngine):

  • Change user to sicklidarloc:

$  sudo su

$  su sicklidarloc

  • Go to the AppEngine directory:

$  cd /opt/sick/SICKAppEngine

  • This command will display the shared libraries needed by the /bin/ls program:

$  ldd ./AppEngine

Troubleshooting

 

It's probable that the last command will return that libssl and libcrypto are missing. These libraries are included in the OpenSSL package. This issue can be resolved by manually installing version 1.1.1 of the OpenSSL package.

  • Create a directory on which you want to place the file. Example:

$  cd ~/Downloads

$  sudo mkdir libssl111

$  cd libssl111

  • Then run the command and install the package:

$  wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb

$  sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_arm64.deb

  • Restart the sick_lidarloc.service. After that, the service should be up and running.

$  sudo systemctl restart sick_lidarloc.service

Keywords:
ubuntu 22.04, linux, lidar-loc, exit-code, code=exited, post-installation, libssl, libcrypto, openssl, lls on linux, installing lls on linux, installing lls, linux ubuntu 22 04, error, linux ubuntu