should I downgrade libssl1.1 to libssl1.0 to install npm
I posted this on askubuntu https:/
Just trying to install npm and the solution I get from aptitude is to downgrade the versions. What impact does that have on my ubuntu 20 LTS if I downgrade?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu openssl Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
As already shown on https:/
You wrote that you are running Ubuntu 20.04, but the foreign version of libssl1.1 that causes the problem is for Ubuntu 18.04.
For diagnostic purposes please provide the output that you receive for the commands (to be executed in a terminal window):
uname -a
lsb_release -crid
sudo apt update
apt-cache policy libssl-dev libssl1.1
Remark: it seems to me that the required downgrade is not from ibssl1.1 to libssl1.0 but only from libssl1.1 version 1.1.1g to libssl1.1 version 1.1.1f
Revision history for this message
|
#2 |
Thanks for your reply, that clears up a lot for me. I didn't see the reply on askubuntu until now. Is there anyway to avoid downgrading or is that the only way I can install npm?
uname -a
Linux Sky-X4C-P7xxTM1-G 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
apt-cache policy libssl-dev libssl1.1
libssl-dev:
Installed: (none)
Candidate: 1.1.1f-1ubuntu2
Version table:
1.
500 http://
libssl1.1:
Installed: 1.1.1g-
Candidate: 1.1.1g-
Version table:
*** 1.1.1g-
100 /var/lib/
1.
500 http://
Revision history for this message
|
#3 |
There is something strange in your settings with respect to the PPA from ondrej sury.
You have libssl1.1 installed from that PPA, but that PPA is no more listed in the output of apt-cache.
What have you done? Have you enabled and later disabled a PPA? Which PPA did you have activated? Or have you manually installed a package from there?
What is the output of
sudo apt update
(already asked before, why didn't you show that output?) and the output of
grep -i ppa /etc/apt/
If you want to avoid downgrading, you probably can re-enable the PPA that you had, and it might instaöl libssl1.1 version 1.1.1g-
Revision history for this message
|
#4 |
I usually just do a fresh install for new LTS releases to avoid all of this, but this time I decided to upgrade from bionic to focal. Afterwards all my PPA's were disabled by default. I just assumed this was part of the process. Would enabling the ppa fix things?
apt update
Get:1 http://
Get:2 http://
Hit:3 http://
Hit:4 https:/
Get:5 http://
Hit:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Fetched 1,190 kB in 1s (1,693 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
grep -i ppa /etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
Revision history for this message
|
#5 |
I suggest that you re-enable http://
sudo gedit /etc/apt/
remove the comment indicator ('# ') in front of "deb" and replace "bionic" by "focal" in the "deb-src" line.
Then execute
sudo apt update
apt list --upgradeable
What output do you receive? I assume that it will show a possible uprade of libssl packages.
Revision history for this message
|
#6 |
Yes, it shows the upgrade like this:
libssl1.1/focal 1.1.1g-
Here is the output:
apt list --upgradable
Listing... Done
apport-
apport/
bash/focal-updates 5.0-6ubuntu1.1 amd64 [upgradable from: 5.0-6ubuntu1]
fwupd-signed/
fwupd/focal-updates 1.3.11-1~focal1 amd64 [upgradable from: 1.3.9-4ubuntu0.1]
gir1.2-
gir1.2-
gnome-getting-
gnome-user-
ibus-data/
ibus-gtk3/
ibus-gtk/
ibus/focal-updates 1.5.22-2ubuntu2.1 amd64 [upgradable from: 1.5.22-2ubuntu2]
less/focal-updates 551-1ubuntu0.1 amd64 [upgradable from: 551-1]
libapache2-
libcephfs2/
libfwupd2/
libfwupdplugin1
libgd3/focal 2.3.0-2+
libibus-
libicu65/focal 65.1-1+
libidn2-0/focal 2.3.0-1+
libidn2-0/focal 2.3.0-1+
libldap-
libldap-
libpcre2-16-0/focal 10.35-4+
libpcre2-32-0/focal 10.35-4+
libpcre2-8-0/focal 10.35-4+
libpcre3/focal 2:8.44-
libqt5webengine
libqt5webengine
libqt5webengine
librados2/
librsvg2-
librsvg2-
libssl1.1/focal 1.1.1g-
libxml2/focal 2.9.10+
openssl/focal 1.1.1g-
php-common/
php-xml/focal,focal 2:7.4+76+
php7.4-cli/focal 7.4.8-1+
php7.4-common/focal 7.4.8-1+
php7.4-json/focal 7.4.8-1+
php7.4-
php7.4-mysql/focal 7.4.8-1+
php7.4-
php7.4-
php7.4-xml/focal 7.4.8-1+
python3-
python3-
python3-
python3-
ubuntu-
ubuntu-
ubuntu-
xserver-
xserver-
xserver-
xserver-
xwayland/
so I did sudo apt upgrade && sudo apt dist-upgrade. That fixed the problem for me. I'm able to install npm now. Thank you so much for your help!! I wish you all the best and keep up the good work you're doing here. I'm pretty new to Linux if you couldn't tell. I'm coming from windows so I really appreciate you being patient with me and helping me fix this, probably trivial problem for you, kind of complex for me lol.
Revision history for this message
|
#7 |
Thanks Manfred Hampl, that solved my question.