From 3fb1a4a03a431eba63994995cad1ea4b88ead2c4 Mon Sep 17 00:00:00 2001 From: Dariusz Parys Date: Thu, 18 Aug 2022 14:39:53 +0200 Subject: [PATCH] refactor: add error message for libssl1.1 On Ubuntu 22.04 the libssl1.1 command currently fails without any intervention This is now checked and will print the alternate installation method of libssl1.1 which basically means 1. Adding `deb http://security.ubuntu.com/ubuntu focal-security main` to `/etc/apt/sources.list` 2. Running `apt update` to include the source --- scripts/linux-prereqs.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/linux-prereqs.sh b/scripts/linux-prereqs.sh index eb9be2bb..dbdb6dbc 100755 --- a/scripts/linux-prereqs.sh +++ b/scripts/linux-prereqs.sh @@ -171,7 +171,13 @@ elif type apt-get > /dev/null 2>&1; then fi # Install libssl1.1 - aptSudoIf "install -yq libssl1.1" + # in case for Ubuntu 22.04 this will fail, therefore we check and print an alternative installation method + # the user can decide on + if ! aptSudoIf "install -yq libssl1.1"; then + echo "(!) libssl1.1 couldn't be installed, probably you're running on Ubuntu 22.04 or later" + echo " please consider installing libssl1.1 from https://packages.ubuntu.com/focal/libssl1.1" + exitScript 1 + fi checkKeyringDeps aptSudoIf "install -yq gnome-keyring libsecret-1-0" checkBrowserDeps aptSudoIf "install -yq desktop-file-utils x11-utils"