Reputation: 787
sudo apt-get install libssl1.1
Reading package lists... Done Building dependency tree... Done Reading state information... Done Package libssl1.1 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'libssl1.1' has no installation candidate
Upvotes: 14
Views: 49822
Reputation: 2550
I've not dug deep enough to find the reason behind the missing libssl1.1 library, but it seems the LTS 22.04 isn't including it for the time being.
I wrote the following script for my systems to have it installed, as one of the tools I use to setup the system requires it.
Hope others find this useful.
# Find the most recent 1.1 libssl package in the ubuntu archives
BASE_URL='http://archive.ubuntu.com/ubuntu/pool/main/o/openssl'
FILE="$( # The get parameters in the URL sort the results by descending chronological order
curl -s "${BASE_URL}/?C=M;O=D" $(\
# Make sure all tags are on separate lines - makes grep-work later easier \
) | tr '>' '>\n' $(\
# extract all the unique links on the page \
) | grep 'href' | sed 's/^.*href="\([^"]*\)".*$/\1/p' | awk '!a[$0]++' $(\
# pick the most relevant items on the list (libssl 1.1 for amd64 arch) \
) | grep "libssl" | grep "1.1_" | grep "amd64.deb" $(\
# choose only the last one \
) | tail -1 )"
# Grab the file and if download was successful, install it with sudo
wget "${URL_BASE}/${FILE}" && sudo dpkg -i "./${FILE}"
Upvotes: 3
Reputation: 367
For all that still face the same problem
The problem should be fixed
Upvotes: 4
Reputation: 787
sudo -i
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
Upvotes: 44