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

Howto remove compiled openssl1.1.1-dev from debian ? #4824

Closed
tvequaud opened this issue Nov 30, 2017 · 7 comments
Closed

Howto remove compiled openssl1.1.1-dev from debian ? #4824

tvequaud opened this issue Nov 30, 2017 · 7 comments

Comments

@tvequaud
Copy link

I had to compile openssl from sources on a Debian Stretch. But now I want to go back to official package openssl from Debian. I tried to remove with apt, dpk, remove everything with locate + rm commands... Still have this f**** reference to openssl 1.1.1-dev

root@sd-101643:~# openssl version
OpenSSL 1.1.0f  25 May 2017 (Library: OpenSSL 1.1.1-dev  xx XXX xxxx)

How to remove this ?????

@levitte
Copy link
Member

levitte commented Nov 30, 2017

apt and dpkg wouldn't know about 1.1.1-dev unless you have a Debian package for it.

How exactly did you install 1.1.1-dev? If you configured with --prefix=/usr, you probably need to reinstall the official Debian packages for the shared libraries (libssl1.1 and possibly libssl.dev). Otherwise, go look for libcrypto.so.1.1 in non-default locations (such as /usr/local/lib), rename them and see if that helps.

@mattcaswell
Copy link
Member

Assuming the openssl binary on your PATH is the one in /usr/bin/openssl (use which openssl to confirm), what does ldd /usr/bin/openssl tell you?

@tvequaud
Copy link
Author

@mattcaswell : here it is !

ldd /usr/bin/openssl
	linux-vdso.so.1 (0x00007fff27dcd000)
	libssl.so.1.1 => not found
	libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f6000587000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6000383000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6000166000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5fffdc7000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f6000cbb000)

Seems second line is broken ! Do you know how to update this path, please ?

@tvequaud
Copy link
Author

I fixed it by running apt-get install --reinstall libssl-1.1
Maybe there is a better option ?
Thank you very much @mattcaswell you helped me a lot !

@mattcaswell
Copy link
Member

So, having fixed libssl-1.1, is openssl version now reporting the correct response?

@tvequaud
Copy link
Author

Yep, only "OpenSSL 1.1.0f 25 May 2017" and now everything works like a charm : I can curl URL in HTTPS !

@mattcaswell
Copy link
Member

Great. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants