title: Ubuntu 22.04 | libssl.so.1.1: cannot open shared object file: No such file or directory
body: <p>I've just updated to <strong>Ubuntu 22.04 LTS</strong> and my libs using <strong>OpenSSL</strong> just stopped working.
  Looks like Ubuntu switched to the version 3.0 of OpenSSL.</p>
  <p>For example, <strong>poetry</strong> stopped working:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/robz/.local/bin/poetry&quot;, line 5, in &lt;module&gt;
      from poetry.console import main
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/console/__init__.py&quot;, line 1, in &lt;module&gt;
      from .application import Application
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/console/application.py&quot;, line 7, in &lt;module&gt;
      from .commands.about import AboutCommand
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/console/commands/__init__.py&quot;, line 4, in &lt;module&gt;
      from .check import CheckCommand
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/console/commands/check.py&quot;, line 2, in &lt;module&gt;
      from poetry.factory import Factory
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/factory.py&quot;, line 18, in &lt;module&gt;
      from .repositories.pypi_repository import PyPiRepository
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/repositories/pypi_repository.py&quot;, line 33, in &lt;module&gt;
      from ..inspection.info import PackageInfo
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/inspection/info.py&quot;, line 25, in &lt;module&gt;
      from poetry.utils.env import EnvCommandError
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/utils/env.py&quot;, line 23, in &lt;module&gt;
      import virtualenv
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/virtualenv/__init__.py&quot;, line 3, in &lt;module&gt;
      from .run import cli_run, session_via_cli
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/virtualenv/run/__init__.py&quot;, line 11, in &lt;module&gt;
      from ..seed.wheels.periodic_update import manual_upgrade
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/virtualenv/seed/wheels/__init__.py&quot;, line 3, in &lt;module&gt;
      from .acquire import get_wheel, pip_wheel_env_run
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/virtualenv/seed/wheels/acquire.py&quot;, line 12, in &lt;module&gt;
      from .bundle import from_bundle
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/virtualenv/seed/wheels/bundle.py&quot;, line 4, in &lt;module&gt;
      from .periodic_update import periodic_update
    File &quot;/home/robz/.local/share/pypoetry/venv/lib/python3.9/site-packages/virtualenv/seed/wheels/periodic_update.py&quot;, line 10, in &lt;module&gt;
      import ssl
    File &quot;/home/robz/.pyenv/versions/3.9.10/lib/python3.9/ssl.py&quot;, line 98, in &lt;module&gt;
      import _ssl             # if we can't import it, let the error propagate
  ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory
  </code></pre>
  <p>Is there an easy fix ? For example, having <code>libssl.so.1.1</code> available without having to uninstall OpenSSL 3 (I don't know if it's even possible).</p>