Skip to content

Commit

Permalink
Ubuntu libssl package version does not exist any more in installdepen…
Browse files Browse the repository at this point in the history
…dencies.sh (#4753)

- Added logic to get latest libssl1.1_1.1.1f
  • Loading branch information
DmitriiBobreshev authored May 20, 2024
1 parent b575d90 commit fd1e0a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Misc/layoutbin/installdependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 '$?'"
Expand Down Expand Up @@ -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 '$?'"
Expand Down

0 comments on commit fd1e0a5

Please sign in to comment.