sdk: Can not install on Ubuntu 22.04 (jammy) due to libssl1.1 dependency
Describe the bug
Thanks a lot for providing out-of-the-box Ubuntu images, they are great! We are getting ready for Ubuntu 22.04 (jammy) that will be released in a few days, but found that the current dotnet packages can currently not be installed. It seems that the problem is due to dotnet linking libssl1.1 whereas Ubuntu jammy now ships only libssl3.
Here is the error I get. It does not
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
dotnet-runtime-deps-5.0 : Depends: libssl1.0.0 but it is not installable or
libssl1.0.2 but it is not installable or
libssl1.1 but it is not installable
dotnet-sdk-5.0 : Depends: netstandard-targeting-pack-2.1 (>= 2.1.0) but it is not installable
Depends: dotnet-targeting-pack-5.0 (>= 5.0.0) but it is not installable
Depends: aspnetcore-targeting-pack-5.0 (>= 5.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
To Reproduce
- Run Ubuntu 22.04 x86_64 current latest (for example from docker)
- Execute
apt-get --quiet --assume-yes --no-install-recommends --purge install "dotnet-sdk-5.0" "dotnet-runtime-5.0"
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 19 (2 by maintainers)
For all that still face the same problem
The problem should be fixed
**Edited the link
Sep 3 and 5 work best for me! *Only Copy and Past
That should help you sail you through 😃 echo “deb http://security.ubuntu.com/ubuntu focal-security main” | sudo tee /etc/apt/sources.list.d/focal-security.list sudo apt-get update sudo apt-get install libssl1.1
Above deb file is missing, use “http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb” instead
Can’t install a node due to error on Ubuntu 22.04
I was facing the libssl1.1 issue when trying to install mongo-db in Pop!_OS 22.04 LTS (or Ubuntu 22.04 LTS). The above mentioned solution solved my problem. Hope this helps others who are trying to do the same. Thank you @feisalramar !