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

Error with Docker #8

Open
jzzzf opened this issue Aug 21, 2024 · 3 comments
Open

Error with Docker #8

jzzzf opened this issue Aug 21, 2024 · 3 comments

Comments

@jzzzf
Copy link

jzzzf commented Aug 21, 2024

When I run

docker build . -t exec-eval:1.0

I got an error like:

Step 34/54 : RUN update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-21-oracle-x64/bin/java 100 &&     update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-21-oracle-x64/bin/javac 100 &&     update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-21-oracle-x64/bin/jar 100 &&     update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 &&     update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100 &&     update-alternatives --install /usr/bin/python python /usr/bin/python3.11 100 &&     update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 100 &&     update-alternatives --install /usr/bin/pypy2 pypy2 /usr/local/pypy2.7-v7.3.9-linux64/bin/pypy2 100 &&     update-alternatives --install /usr/bin/pypy3 pypy3 /usr/local/pypy3.9-v7.3.9-linux64/bin/pypy3 100
 ---> Running in f9c50838145e
update-alternatives: error: alternative path /usr/lib/jvm/jdk-21-oracle-x64/bin/java doesn't exist
The command '/bin/sh -c update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-21-oracle-x64/bin/java 100 &&     update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-21-oracle-x64/bin/javac 100 &&     update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-21-oracle-x64/bin/jar 100 &&     update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 &&     update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100 &&     update-alternatives --install /usr/bin/python python /usr/bin/python3.11 100 &&     update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 100 &&     update-alternatives --install /usr/bin/pypy2 pypy2 /usr/local/pypy2.7-v7.3.9-linux64/bin/pypy2 100 &&     update-alternatives --install /usr/bin/pypy3 pypy3 /usr/local/pypy3.9-v7.3.9-linux64/bin/pypy3 100' returned a non-zero code: 2
@Deyu-Kong
Copy link

I have the same error!when run it in windows

@Jackal1586
Copy link
Collaborator

Hi, sorry for the delay. I have updated the Dockerfile to resolve the issue: dd69386

Please pull the main branch and build the image again, hopefully it should be fixed.

@Deyu-Kong
Copy link

Yes, it's been solved. Thank you!

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