Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not install on Ubuntu 22.04 (jammy) due to libssl1.1 dependency #24759

Closed
emmenlau opened this issue Apr 8, 2022 · 20 comments
Closed

Can not install on Ubuntu 22.04 (jammy) due to libssl1.1 dependency #24759

emmenlau opened this issue Apr 8, 2022 · 20 comments
Labels
Area-Linux untriaged Request triage from a team member

Comments

@emmenlau
Copy link

emmenlau commented Apr 8, 2022

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"
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Linux untriaged Request triage from a team member labels Apr 8, 2022
@jason-persson
Copy link

I have the same issue. I tried using the snap package of the sdk instead, but this segfaults when doing a dotnet restore. I'm not sure why the snap segfaults considering snap packages are meant to be self contained.

@danmoseley
Copy link
Member

dotnet/core#7038

@emmenlau
Copy link
Author

emmenlau commented Apr 9, 2022

Jep, that seems to be the same issue. Should we close this one here?

@sunsided
Copy link

sunsided commented Apr 11, 2022

What worked for me here is to use snap for installation and export CLR_OPENSSL_VERSION_OVERRIDE=1.0.0 to work around the segfault.

@emmenlau
Copy link
Author

What worked for me here is to export CLR_OPENSSL_VERSION_OVERRIDE=1.0.0.

I guess that can work as a hack to get the package installed, but I doubt its a good idea to gamble with encryption in this way....

@sunsided
Copy link

sunsided commented Apr 12, 2022

I guess that can work as a hack to get the package installed, but I doubt its a good idea to gamble with encryption in this way....

I mean, we're talking prerelease OS version anyways, so there's that. 🙂

It's a runtime workaround to get dotnet restore going; mentioned in dotnet/core#7038 (comment). The apt installation fails regardless, only snap worked for me. (Updated my original comment.)

@jucinaldo
Copy link

Dear, encounter the similar problem, when trying to install PHP7.4 packages, look for someone for a workaround.

sudo cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian

Kernel 5.15.0-41-generic x86_64 GNU/Linux
PHP7.4 for install DokuWiki

sudo apt install php7.4 php7.4-fpm php7.4-cli -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
php7.4-cli : Depends: libssl1.1 (>= 1.1.0) but it is not installable
php7.4-common : Depends: libssl1.1 (>= 1.1.0) but it is not installable
php7.4-fpm : Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

@danmoseley
Copy link
Member

Maybe @bartonjs can advise.

@emmenlau
Copy link
Author

Dear @jucinaldo , your problem is related to PHP, while the problems in this thread are related to dotnet SDK. Even though the underlying cause may be related, nobody here can help you. You need to go to the people that compiled the version of PHP that you are trying to install. Good luck!

@feisalramar
Copy link

feisalramar commented Aug 13, 2022

For all that still face the same problem

  1. Go to http://archive.ubuntu.com/ubuntu/pool/main/o/openssl
  2. find the exact version of libssl for example libssl1.1.1
  3. wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb
  4. Then install
  5. sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb

The problem should be fixed

**Edited the link

@loSantiago
Copy link

For all that still face the same problem

  1. Go tohttp://archive.ubuntu.com/ubuntu/pool/main/o/openssl
  2. find the exact version of libssl for example libssl1.1.1
  3. wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
  4. Then install
  5. sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb

The problem should be fixed

Sep 3 and 5 work best for me!
*Only Copy and Past

@bkp31415
Copy link

For all that still face the same problem

1. Go tohttp://archive.ubuntu.com/ubuntu/pool/main/o/openssl

2. find the exact version of libssl for example libssl1.1.1

3. wget [http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1\~18.04.20_amd64.deb](http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1%5C~18.04.20_amd64.deb)

4. Then install

5. sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb

The problem should be fixed

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 !

developmentIoT added a commit to developmentIoT/zoneminder-base-cuda that referenced this issue Sep 11, 2022
when running docker build command, would fail to install ngnx because of libssl 1.1.1, this way it was installed manually using this forum post: dotnet/sdk#24759
@CryptoSailors
Copy link

CryptoSailors commented Nov 28, 2022

Can't install a node due to error on Ubuntu 22.04

The following packages have unmet dependencies:
 chainflip-cli : Depends: libssl1.1 (>= 1.1.0) but it is not installable
 chainflip-engine : Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

@tirelibirefe
Copy link

$ sudo dpkg -i libssl3_3.0.2-0ubuntu1.7_amd64.deb
Selecting previously unselected package libssl3:amd64.
(Reading database ... 112311 files and directories currently installed.)
Preparing to unpack libssl3_3.0.2-0ubuntu1.7_amd64.deb ...
Unpacking libssl3:amd64 (3.0.2-0ubuntu1.7) ...
dpkg: dependency problems prevent configuration of libssl3:amd64:
 libssl3:amd64 depends on libc6 (>= 2.34); however:
  Version of libc6:amd64 on system is 2.31-0ubuntu9.9.

dpkg: error processing package libssl3:amd64 (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Errors were encountered while processing:
 libssl3:amd64

@yaaagy
Copy link

yaaagy commented Jun 15, 2023

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

@Ahmard
Copy link

Ahmard commented Jun 24, 2023

For all that still face the same problem

  1. Go to http://archive.ubuntu.com/ubuntu/pool/main/o/openssl
  2. find the exact version of libssl for example libssl1.1.1
  3. wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
  4. Then install
  5. sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb

The problem should be fixed

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

@ningyile
Copy link

For all that still face the same problem

  1. Go to http://archive.ubuntu.com/ubuntu/pool/main/o/openssl
  2. find the exact version of libssl for example libssl1.1.1
  3. wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
  4. Then install
  5. sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb

The problem should be fixed

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

Thx! It worked! But the link of libssl1.1 has been updated.

@bobcoin98
Copy link

@feisalramar
#24759 (comment)
There is no package for arm64 arch

 package architecture (amd64) does not match system (arm64)

@feisalramar
Copy link

@bobcoin98

I managed to find the link for arm64

Page Link : https://launchpad.net/ubuntu/bionic/arm64/libssl-dev/1.1.0g-2ubuntu4

Package link : http://launchpadlibrarian.net/367327966/libssl-dev_1.1.0g-2ubuntu4_arm64.deb

I hope that will work for you.
Regards.

@tsiq-rickc
Copy link

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

Thank you - confirmed working on Linux Mint 21.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Linux untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests