From fd1e0a55b060f2cc0640a367a058831b5cbb5230 Mon Sep 17 00:00:00 2001 From: Dmitrii Bobreshev <106314398+DmitriiBobreshev@users.noreply.github.com> Date: Mon, 20 May 2024 11:18:27 +0200 Subject: [PATCH] Ubuntu libssl package version does not exist any more in installdependencies.sh (#4753) - Added logic to get latest libssl1.1_1.1.1f --- src/Misc/layoutbin/installdependencies.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Misc/layoutbin/installdependencies.sh b/src/Misc/layoutbin/installdependencies.sh index be8d2c7a86..fca8740cfb 100644 --- a/src/Misc/layoutbin/installdependencies.sh +++ b/src/Misc/layoutbin/installdependencies.sh @@ -84,12 +84,13 @@ then exit 1 fi + package=$(wget -qO- http://security.ubuntu.com/ubuntu/pool/main/o/openssl/ | grep -oP '(libssl1.1_1.1.1f.*?_amd64.deb)' | head -1) # debian 10 uses libssl1.1 # debian 9 uses libssl1.0.2 # other debian linux use libssl1.0.0 apt install -y libssl3 || apt install -y libssl1.1 || apt install -y libssl1.0.2 || apt install -y libssl1.0.0 || \ - (wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb \ - && dpkg -i libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb) + (wget "http://security.ubuntu.com/ubuntu/pool/main/o/openssl/${package}" \ + && dpkg -i $package) if [ $? -ne 0 ] then echo "'apt' failed with exit code '$?'" @@ -120,9 +121,10 @@ then # debian 10 uses libssl1.1 # debian 9 uses libssl1.0.2 # other debian linux use libssl1.0.0 + package=$(wget -qO- http://security.ubuntu.com/ubuntu/pool/main/o/openssl/ | grep -oP '(libssl1.1_1.1.1f.*?_amd64.deb)' | head -1) apt-get install -y libssl3 || apt-get install -y libssl1.1 || apt-get install -y libssl1.0.2 || apt-get install -y libssl1.0.0 || \ - (wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb \ - && dpkg -i libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb) + (wget "http://security.ubuntu.com/ubuntu/pool/main/o/openssl/${package}" \ + && dpkg -i $package) if [ $? -ne 0 ] then echo "'apt-get' failed with exit code '$?'"