skip to Main Content

I have a ubuntu 20.04 container. I have openssl installed

root@sddfr4533:/# openssl version
OpenSSL 1.1.1n  15 Mar 2022

I am getting this error when trying to clone some project containing libcrypto.so.1.1

/usr/lib/git-core/git-remote-http: /software/bin/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /lib/x86_64-linux-gnu/libssh.so.4)

also when I try to remove and reinstall openssh (apt-get install openssh-server openssh-client) , I am receiving this error:

Creating config file /etc/ssh/sshd_config with new version
Creating SSH2 RSA key; this may take some time ...OpenSSL version mismatch. Built against 1010106f, you have 1010007f

I have already tried solutions on these threads:
OpenSSL version mismatch. Built against 1000105f, you have 10001080

and

OpenSSL version mismatch

2

Answers


  1. Chosen as BEST ANSWER

    The problem was related to the LD_LIBRARY_PATH set for my program /software/bin/. That cause having multiple versions.


  2. I encountered this while doing a git push, and here is how I solved it:

    • I updated the openssh-server and openssh-client on my system by following this answer. This did not work out, but there was no harm in updating these libraries to their latest versions:

      sudo apt install openssh-server openssh-client
      
    • I then removed the LD_LIBRARY_PATH which I had set up while I was working on a different thing. [An answer to this current question indirectly inspired me to do so]

    I then ran source ~/.zshrc but things still did not work out.

    I restarted my terminal, and voila! It worked!

    Here are the required info on my system’s configuration:

    OS: Ubuntu 22.04

    Shell: zsh

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search