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

Command Line Tools not working on Ubuntu 18 #21061

Open
alexandrevicenzi opened this Issue Sep 20, 2018 · 12 comments

Comments

Projects
None yet
9 participants
@alexandrevicenzi

alexandrevicenzi commented Sep 20, 2018

Command Line Tools available on https://mirror.openshift.com/pub/openshift-v3/clients/3.11.0-0.21.0/linux/oc.tar.gz does not working on Ubuntu 18.

Version

3.11?

Steps To Reproduce
  1. Download https://mirror.openshift.com/pub/openshift-v3/clients/3.11.0-0.21.0/linux/oc.tar.gz
  2. Extract
  3. Try to run oc <command>
Current Result

libcrypto.so.10: cannot open shared object file: No such file or directory

Expected Result

It should work.

Additional Information

The version from https://github.com/openshift/origin/releases/download/v3.10.0/openshift-origin-client-tools-v3.10.0-dd10d17-linux-64bit.tar.gz works on Ubuntu 18.

Current versions of libssl for Ubuntu 18

libssl1.0.0/bionic-updates,bionic-security,now 1.0.2n-1ubuntu5.1
libssl1.1/bionic-updates,bionic-security,now 1.1.0g-2ubuntu4.1

These versions are not compatible as far as I tested.

@jwforres

This comment has been minimized.

Show comment
Hide comment
@jwforres
Member

jwforres commented Oct 1, 2018

@soltysh

This comment has been minimized.

Show comment
Hide comment
@soltysh

soltysh Oct 1, 2018

Member

@alexandrevicenzi looks like you're hitting a problem mentioned in https://askubuntu.com/a/339371 mind giving it a try?

Member

soltysh commented Oct 1, 2018

@alexandrevicenzi looks like you're hitting a problem mentioned in https://askubuntu.com/a/339371 mind giving it a try?

@alexandrevicenzi

This comment has been minimized.

Show comment
Hide comment
@alexandrevicenzi

alexandrevicenzi Oct 1, 2018

@soltysh already tried and didn't work.

alexandrevicenzi commented Oct 1, 2018

@soltysh already tried and didn't work.

@soltysh

This comment has been minimized.

Show comment
Hide comment
@soltysh

soltysh Oct 2, 2018

Member

Which exact version of libcrypto you have installed?

Member

soltysh commented Oct 2, 2018

Which exact version of libcrypto you have installed?

@alexandrevicenzi

This comment has been minimized.

Show comment
Hide comment
@alexandrevicenzi

alexandrevicenzi Oct 2, 2018

libcrypto++6/bionic,now 5.6.4-8 amd64
libssl1.0.0/bionic-updates,bionic-security,now 1.0.2n-1ubuntu5.1 amd64
libssl1.1/bionic-updates,bionic-security,now 1.1.0g-2ubuntu4.1 amd64

alexandrevicenzi commented Oct 2, 2018

libcrypto++6/bionic,now 5.6.4-8 amd64
libssl1.0.0/bionic-updates,bionic-security,now 1.0.2n-1ubuntu5.1 amd64
libssl1.1/bionic-updates,bionic-security,now 1.1.0g-2ubuntu4.1 amd64

@juanvallejo

This comment has been minimized.

Show comment
Hide comment
@juanvallejo

juanvallejo Oct 3, 2018

Member

Maybe the binary is expecting to find libcrypto.so.10 in /usr/lib instead of /usr/lib/x86_64-linux-gnu. Try symlinking to /usr/lib

Member

juanvallejo commented Oct 3, 2018

Maybe the binary is expecting to find libcrypto.so.10 in /usr/lib instead of /usr/lib/x86_64-linux-gnu. Try symlinking to /usr/lib

@alexandrevicenzi

This comment has been minimized.

Show comment
Hide comment
@alexandrevicenzi

alexandrevicenzi Oct 3, 2018

If I create a symlink to use these versions it fails because the headers aren't compatible. My guess Ubuntu has a newer version and oc uses an older one.

alexandrevicenzi commented Oct 3, 2018

If I create a symlink to use these versions it fails because the headers aren't compatible. My guess Ubuntu has a newer version and oc uses an older one.

@soltysh

This comment has been minimized.

Show comment
Hide comment
@soltysh

soltysh Oct 4, 2018

Member

It might be that the golang package that's building these binaries relies on older libraries than ubuntu provides. In which case the only thing I can recommend is try rebuilding it locally and see if that works for you.

Member

soltysh commented Oct 4, 2018

It might be that the golang package that's building these binaries relies on older libraries than ubuntu provides. In which case the only thing I can recommend is try rebuilding it locally and see if that works for you.

@alexandrevicenzi

This comment has been minimized.

Show comment
Hide comment
@alexandrevicenzi

alexandrevicenzi Oct 4, 2018

@soltysh rebuilding it works.

$ _output/local/bin/linux/amd64/oc version
oc v4.0.0-alpha.0+9b0a97c-250
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

The problem that I see it that the binary is available to download as the Linux version and it's quite hard to get it working on all distros.

alexandrevicenzi commented Oct 4, 2018

@soltysh rebuilding it works.

$ _output/local/bin/linux/amd64/oc version
oc v4.0.0-alpha.0+9b0a97c-250
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

The problem that I see it that the binary is available to download as the Linux version and it's quite hard to get it working on all distros.

@soltysh

This comment has been minimized.

Show comment
Hide comment
@soltysh

soltysh Oct 5, 2018

Member

It looks like our @openshift/sig-security team is responsible for these problems, reassigning to them.

Member

soltysh commented Oct 5, 2018

It looks like our @openshift/sig-security team is responsible for these problems, reassigning to them.

@soltysh soltysh assigned ericavonb and unassigned soltysh Oct 5, 2018

@soltysh soltysh added sig/security and removed sig/master labels Oct 5, 2018

@archit2306

This comment has been minimized.

Show comment
Hide comment
@archit2306

archit2306 Oct 8, 2018

Hi I am also getting the same issue while trying to install oc on ubuntu 18.04 LTS

archit2306 commented Oct 8, 2018

Hi I am also getting the same issue while trying to install oc on ubuntu 18.04 LTS

@skonto

This comment has been minimized.

Show comment
Hide comment
@skonto

skonto Oct 17, 2018

I am hitting the same issue on both 16.04 and 18.04. This is a blocker. Symlink does not work as mentioned above:

./oc
./oc: /lib/x86_64-linux-gnu/libcrypto.so.10: version `OPENSSL_1.0.1_EC' not found (required by ./oc)
./oc: /lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by ./oc)

skonto commented Oct 17, 2018

I am hitting the same issue on both 16.04 and 18.04. This is a blocker. Symlink does not work as mentioned above:

./oc
./oc: /lib/x86_64-linux-gnu/libcrypto.so.10: version `OPENSSL_1.0.1_EC' not found (required by ./oc)
./oc: /lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by ./oc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment