skip to Main Content

sudo apt-get install libssl1.1

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package libssl1.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘libssl1.1’ has no installation candidate

3

Answers


  1. Chosen as BEST ANSWER
    sudo -i
    wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
    sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
    

  2. 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

    Login or Signup to reply.
  3. I’ve not dug deep enough to find the reason behind the missing libssl1.1 library, but it seems the LTS 22.04 isn’t including it for the time being.

    I wrote the following script for my systems to have it installed, as one of the tools I use to setup the system requires it.

    Hope others find this useful.

    # Find the most recent 1.1 libssl package in the ubuntu archives
    BASE_URL='http://archive.ubuntu.com/ubuntu/pool/main/o/openssl'
    FILE="$( # The get parameters in the URL sort the results by descending chronological order
        curl -s "${BASE_URL}/?C=M;O=D" $(
            # Make sure all tags are on separate lines - makes grep-work later easier 
            ) | tr '>' '>n' $(
            # extract all the unique links on the page 
            ) | grep 'href' | sed 's/^.*href="([^"]*)".*$/1/p' | awk '!a[$0]++' $(
            # pick the most relevant items on the list (libssl 1.1 for amd64 arch) 
            ) | grep "libssl" | grep "1.1_" | grep "amd64.deb" $(
            # choose only the last one 
            ) | tail -1 )"
    # Grab the file and if download was successful, install it with sudo
    wget "${URL_BASE}/${FILE}" && sudo dpkg -i "./${FILE}"
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search