Stuck downgrading libssl on Ubuntu 16.04
18,227
You should follow https://packages.ubuntu.com/xenial/libssl-dev and download appropriate version and install using
dpkg -i packagename
As you specified you are trying to get official version of libssl, Hope you can install from here. Below a image of different architecture are included.
Author by
TheRealPapa
Learning to program as part of a middle age crisis!
Updated on September 18, 2022Comments
-
TheRealPapa over 1 year
I have updated my
Ubtuntu 16.04
server earlier today, and one of my apps which useswkhtmltopdf
stopped working.Based on the thread here, the solution is to downgrade and lock
libssl
to the previous version.apt install libssl-dev=1.0.2g-1ubuntu4.8
When I try and downgrade:
vagrant@homestead:~/src$ sudo apt install libssl-dev=1.0.2g-1ubuntu4.8 Reading package lists... Done Building dependency tree Reading state information... Done E: Version '1.0.2g-1ubuntu4.8' for 'libssl-dev' was not found
Further info on my server is:
root@aubeta:/app# ldconfig -p |grep libssl libssl.so.1.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 libssl.so.1.0.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl.so.1.0.0 libssl.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libssl.so root@aubeta:/app# apt-cache search libssl libssl-dev - Secure Sockets Layer toolkit - development files libssl-doc - Secure Sockets Layer toolkit - development documentation libssl1.1 - Secure Sockets Layer toolkit - shared libraries libssl1.0.0 - Secure Sockets Layer toolkit - shared libraries
I had followed the suggestion to try this version:
sudo apt-get install libssl-dev=1.0.2g-1ubuntu4.10
With a similar result:
root@aubeta:/app# apt-get install libssl-dev=1.0.2g-1ubuntu4.10 Reading package lists... Done Building dependency tree Reading state information... Done E: Version '1.0.2g-1ubuntu4.10' for 'libssl-dev' was not found
Further screen outputs from commenters below:
root@aubeta:/app# apt-cache policy libssl-dev libssl-dev: Installed: 1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1 Candidate: 1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1 Version table: *** 1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1 500 500 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/status root@aubeta:/app# sudo dpkg -s libssl-dev Package: libssl-dev Status: install ok installed Priority: optional Section: libdevel Installed-Size: 6961 Maintainer: Debian OpenSSL Team <[email protected]> Architecture: amd64 Multi-Arch: same Source: openssl Version: 1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1 Depends: libssl1.1 (= 1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1) Recommends: libssl-doc Conflicts: libssl1.0-dev Description: Secure Sockets Layer toolkit - development files This package is part of the OpenSSL project's implementation of the SSL and TLS cryptographic protocols for secure communication over the Internet. . It contains development libraries, header files, and manpages for libssl and libcrypto. Homepage: https://www.openssl.org/
Any help is appreciated.
-
fkraiem over 6 yearsThe latest version of
libssl-dev
on 16.04 is1.0.2g-1ubuntu4.10
(unless you are using an exotic architecture), so that is the one you should have. What doesapt-cache policy libssl-dev
say? -
Dawid Laszuk over 6 yearsAre you by any chance running this on AWS EC2 instance or other cloud? Security issues are important so they might have their own flavour of OpenSSL. Check for example AWS OpenSSL. On that note, it might be beneficial to print what you have with
sudo dpkg -s libssl-dev
. -
TheRealPapa over 6 yearsHi all, thanks for the replies. I have 2 AWS instances. I did
apt-get
updates on my beta (AWS) and my local (homestead). On both of these my app usingwkhtmltopdf
fails miserably. Upon research, I found this link (github.com/wkhtmltopdf/wkhtmltopdf/issues/3001) pointing to thelibssl
downgrade and lock. In contrast, my prod (AWS) is working perfectly since it did not get updated. -
TheRealPapa over 6 yearsHi @fkraiem I added the output of your suggested command.
-
TheRealPapa over 6 yearsHi @DawidLaszuk I added the output of your suggested command
-
fkraiem over 6 yearsUh, why do you not have any official repositories enabled?
-
fkraiem over 6 yearsOh, this is AWS... I really think AWS questions should be off-topic here, those systems are always so weird, they can hardly be considered official Ubuntu anymore.
-
TheRealPapa over 6 yearsyes but same issue with my Homestead image
-
-
e40 almost 4 yearsIt's unclear to me how to use this information. I need to use 16.04.x for support and no permutation of commands can get
libssl-dev
installed. TIA -
Rajendra Kumar Yadav almost 4 yearsVisit this [URL] (packages.ubuntu.com/xenial/libssl-dev) and download the deb file according to your arch and install the package using dpkg -I package_name. I hope, It is clear to you. 👍