Closed Robinlovelace closed 2 years ago
This looks like a broken libssl on your machine. Did you manually upgrade this server from 18.04 to 20.04 maybe?
Try forcing a reinstall of libssl:
sudo apt-get install --reinstall libssl-dev libssl3
Did you manually upgrade this server from 18.04 to 20.04 maybe?
No but may have tried to make libssl.so.3
available in different places, there's an issue in rstudio/rstudio on that I can dig out if useful. In any case, libssl3
appears to not exist in standard 20.04 repos and reinstalling libssl-dev
does not solve the problem.
Wait how did you end up with libssl3 in ubuntu 20.04? That version of libssl was introduced in ubuntu 22.04.
Can you check if you have a (second) copy of libssl in /usr/local/include/openssl
? The only libssl on your machine should be in /usr/include/openssl
Yes, there it is:
ls /usr/local/include/openssl
aes.h bnerr.h cmserr.h core.h decodererr.h ecdsa.h ess.h kdf.h obj_mac.h pem.h rc2.h srp.h symhacks.h x509err.h
asn1err.h bn.h cms.h core_names.h decoder.h ecerr.h evperr.h lhash.h ocsperr.h pkcs12err.h rc4.h srtp.h tls1.h x509.h
asn1.h buffererr.h comperr.h core_object.h des.h ec.h evp.h macros.h ocsp.h pkcs12.h rc5.h ssl2.h trace.h x509v3err.h
asn1_mac.h buffer.h comp.h crmferr.h dherr.h encodererr.h fipskey.h md2.h opensslconf.h pkcs7err.h ripemd.h ssl3.h tserr.h x509v3.h
asn1t.h camellia.h conf_api.h crmf.h dh.h encoder.h fips_names.h md4.h opensslv.h pkcs7.h rsaerr.h sslerr.h ts.h x509_vfy.h
asyncerr.h cast.h conferr.h cryptoerr.h dsaerr.h engineerr.h hmac.h md5.h ossl_typ.h proverr.h rsa.h sslerr_legacy.h txt_db.h
async.h cmac.h conf.h cryptoerr_legacy.h dsa.h engine.h httperr.h mdc2.h param_build.h provider.h safestack.h ssl.h types.h
bioerr.h cmperr.h configuration.h crypto.h dtls1.h e_os2.h http.h modes.h params.h prov_ssl.h seed.h stack.h uierr.h
bio.h cmp.h conftypes.h cterr.h ebcdic.h err.h idea.h objectserr.h pem2.h randerr.h self_test.h storeerr.h ui.h
blowfish.h cmp_util.h core_dispatch.h ct.h ecdh.h esserr.h kdferr.h objects.h pemerr.h rand.h sha.h store.h whrlpool.h
Did you attempt to install libssl from source? There should be no libssl in /usr/local
, only in /usr/include
and /usr/lib
.
Try removing it:
sudo rm -Rf /usr/local/include/openssl
sudo rm -f /usr/local/lib/libssl.*
sudo rm -f /usr/local/lib/libcrypto.*
Then it should work.
sudo rm -Rvf /usr/local/include/openssl
After that it works! Many thanks Jeroen.
Did you attempt to install libssl from source?
Yes that was probably the underlying cause.
Not sure what's causing this and may not be reproducible but this is what I'm seeing on my desktop, reporting in case of use/interest: