libssl1.1 dependency conflict on Ubuntu 21.10

5.3k Views Asked by At

I'm new to ubuntu and I'm trying to install nodejs npm but I get the error:

The following packages have unmet dependencies: libssl-dev : Depends: libssl1.1 (= 1.1.1l-1ubuntu1) but 1.1.1l-1ubuntu1.1 is to be installed E: Unable to correct problems, you have held broken packages.

I tried to install libssl1.1 via apt but ig I'm doing something wrong. Please suggest me a right code to install the right version of libssl I need, I'm on Ubuntu 21.10.

1

There are 1 best solutions below

0
On BEST ANSWER

Try these instructions. Also it's possible libssl1.1 isn't installing on your system because you have other ssl libraries already installed and are conflicting. If they were installed from PPAs for example.