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
Answer from Piyush Prajapati on Stack Overflowwkhtml error installing
ubuntu - E: Package 'libssl1.1' has no installation candidate - Stack Overflow
debian - Run dpkg so that it installs dependent packages - Unix & Linux Stack Exchange
Debian stretch dependencies issue
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
- Go to http://archive.ubuntu.com/ubuntu/pool/main/o/openssl
- find the exact version of libssl for example libssl1.1.1
- wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1\~18.04.20_amd64.deb
- Then install
- sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
Ubuntu 22.04 uses libssl3, and thus libssl1.1 is deprecated at this point.
Creating a new package for Ubuntu 22.04 that uses an obsolete libssl version seems like a very bad idea. Also, messing with versions for systemwide libraries like libssl is a similarly a very bad idea, which may have unpredictable consequences in the future.
So one option is that if you will continue to use Ubuntu 22.04, you should convert into using libssl3 for your apps.
Another option is to run legacy apps inside a VM or container, where you could install an older version of Ubuntu (e.g. 20.04) that has libssl1.1 installed.
These two options seem to be the most viable paths to take in your situation.
Although I think the advice given by Artur is good. I managed to resolve this for a legacy app (specifically easytether-usb) by grabbing libcrypto.so.1.1 from the 1.1 install as referenced by @Nishant in his answer. I installed that in user space under my home directory and created a sym link to it in /lib/libcrypto.so.1.1:
sudo ln -s ~/openssl/lib/libcrypto.so.1.1 /lib/libcrypto.so.1.1
You can normally add ~/openss/lib to the LD_LIBRARY_PATH for the specific application in question, but in my case the leacy app didn't properly look in $LD_LIBRARY_PATH, so I had to find out where it was looking for libcrypto.so.1.1, I did that with the following:
sudo strace -e trace=open,openat,close,read,write,connect,accept easytether-usb
That showed me a dozen or so attempts to find the file libcrypto.so.1.1 in various locations, which is why I knew to add the sym link to /lib/ above.
After that the legacy app fired up and worked like normal. Other uses cases will likely need other shared libraries. the strace command above should help determine what's needed.
Note that libssl1.0.0 is obsolete and no longer updated; any binary linking to it probably suffers from various security issues (perhaps not exploitable, but you’d need to determine that in your scenarios). You should really look for a newer version of whatever it is you’re trying to use.
However, you can find libssl1.0.0 on Debian snapshots; download the appropriate package and install it. For example on amd64:
wget http://snapshot.debian.org/archive/debian/20170705T160707Z/pool/main/o/openssl/libssl1.0.0_1.0.2l-1%7Ebpo8%2B1_amd64.deb
sudo dpkg -i libssl1.0.0*.deb
You may need to install multiarch-support first:
wget http://snapshot.debian.org/archive/debian/20190501T215844Z/pool/main/g/glibc/multiarch-support_2.28-10_amd64.deb
sudo dpkg -i multiarch-support*.deb
(Having this library installed only affects binaries which link to it; it won’t create security issues for other binaries linking to other versions of the library.)
I was facing a libssl1.1 issue when trying to install mongo-db in Pop!_OS 22.04 LTS (or Ubuntu 22.04 LTS).
As @stephen-kitt mentioned libssl1.x is an obsolete package. So you need to manually install the required package.
- Go to this page
- Find the exact version of libssl for example libssl1.1.1
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb(use your version url respectively)- Then install with
sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
Hope this helps others who are trying to do the same.
The issue is referenced on Github, all credit goes to @feisalramar.
Hello.
I need to install a VPN for my job. This vpn ask, amongst another libraries, libssl1.1.
Tried to install it through apt, bit this library is not in the repo anymore (I have libssl3 already installed, but that one doesn't work)
Im using pop os, recently updated to 22.04.
VPN is Forcepoint 2.5, Linux version, without gui, only cli.
So, I need to install that library in order to use the vpn, how can I do it? Where can I find it? Looking on Internet I only found a guy saying to install an old repo to download it, is it a good idea? Can I delete that repo later easily?
Thanks in advance! I'm a bit new to Linux, still on the basics but learning!
on Ubuntu 14.04 and Ubuntu 20.04.4 LTS
(correct architecture 32 bit)
$ dpkg -i wkhtmltox-0.12.2.1_linux-trusty-i386.deb
dpkg: dependency problems prevent configuration of wkhtmltox:
wkhtmltox depends on xfonts-base; however:
Package xfonts-base is not installed.
wkhtmltox depends on xfonts-75dpi; however:
Package xfonts-75dpi is not installed.
Ubuntu 20.04.4 LTS:
sudo dpkg -i wkhtmltox_0.12.6-1.focal_amd64.deb
Selecting previously unselected package wkhtmltox.
(Reading database ... 230695 files and directories currently
installed.)
Preparing to unpack wkhtmltox_0.12.6-1.focal_amd64.deb ...
Unpacking wkhtmltox (1:0.12.6-1.focal) ...
dpkg: dependency problems prevent configuration of wkhtmltox:
wkhtmltox depends on xfonts-75dpi; however:
Package xfonts-75dpi is not installed.
dpkg: error processing package wkhtmltox (--install):
dependency problems - leaving configured
Processing triggers for man-db (2.9.1-1) ...
Now just issue the following command:
apt-get -f install
FWIW, I ran into this same problem and it turned out to be an issue with the version of wkhtmltopdf I was trying to install. I have an Ubuntu 12.04.5 64-bit system and was trying to install a 32-bit version of the package. Looks like you have the 32-bit version there as well; should it be amd64 instead of i386? All package downloads here: http://wkhtmltopdf.org/downloads.html.
Hope this helps.
I have resolved the issue by installing libssl manually.
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
I've encountered this issue with 22.04 LTS, ended up writing 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}"