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 GAP8 Docker #48

Closed
rallen10 opened this issue May 29, 2021 · 4 comments
Closed

Error with GAP8 Docker #48

rallen10 opened this issue May 29, 2021 · 4 comments

Comments

@rallen10
Copy link

While trying to setup the GAP8 Docker container I run into several errors.

The first of which I was able to work around, and created a pull request to fix.

The next one I ran into, I haven't been able to sort out yet. After running

sudo docker build --tag gapsdk:${GAP_SDK_VERSION} --build-arg GAP_SDK_VERSION=$GAP_SDK_VERSION .

I eventually get the error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/libk/libkml/libkmlbase1_1.3.0-5_amd64.deb  Undetermined Error [IP: 91.189.88.152 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get install -y libopencv-dev python3-opencv' returned a non-zero code: 100

Could this perhaps be fixed with the new SDK version

@knmcguire
Copy link
Member

Hmm interesting. I haven't seen this before yet and the docker was tried out pretty recently. It seems to be a connection problem. Are you building the docker image from behind a vpn or in a university network perhaps?

@knmcguire
Copy link
Member

I just build the docker from scratch but I'm not able to reproduce your failed to fetch issue... and I tried it out on the virtual machine, windows WSL 20.04 and a native ubuntu install of 20.04. Could you try again ? maybe there was something wrong with that repo temporarily, perhaps the server was broken.

@rallen10
Copy link
Author

rallen10 commented Jun 10, 2021

I might have found a fix based on this stackexchange post and the docker file best practices. In short, I added apt-get update && to the line:

RUN apt-get update && apt-get install -y libopencv-dev python3-opencv

And it seemed to work. Specifically I was following the best-practices instruction:

Always combine RUN apt-get update with apt-get install in the same RUN statement.

I can open a pull request for the change if you like

@rallen10
Copy link
Author

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

2 participants