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

Docker image build fail #289

Open
kaiyi98 opened this issue Jul 13, 2023 · 2 comments
Open

Docker image build fail #289

kaiyi98 opened this issue Jul 13, 2023 · 2 comments

Comments

@kaiyi98
Copy link

kaiyi98 commented Jul 13, 2023

Hello!
I followed the instructions to clone the repository and build the docker image, however, upon running
docker build -t hloc:latest .
the installation fails with the following error:

Sending build context to Docker daemon  38.13GB
Step 1/13 : FROM colmap/colmap:latest
 ---> e29170b1b6b0
Step 2/13 : MAINTAINER Paul-Edouard Sarlin
 ---> Using cache
 ---> 04ad3833dd1d
Step 3/13 : ARG PYTHON_VERSION=3.8
 ---> Using cache
 ---> 9feb097614c8
Step 4/13 : RUN apt-get update -y
 ---> Running in cddd1a6ba023
Get:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease [1581 B]
Err:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Ign:2 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  InRelease
Get:3 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Release [564 B]
Get:4 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Release.gpg [833 B]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:6 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:7 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Packages [73.8 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1636 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3785 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [1688 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [23.8 kB]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [3373 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [1728 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2410 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [30.8 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [20.6 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [64.0 kB]
Reading package lists...
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease' is no longer signed.
The command '/bin/sh -c apt-get update -y' returned a non-zero code: 100

Not sure how to fix this.
Hope to get your help, thank you!

@sarlinpe
Copy link
Member

The latest COLMAP docker image on dockerhub is indeed outdated (4-year old and uses Ubuntu 18). You can build a fresh COLMAP image yourself following these instructions. Then building the hloc image should use the local COLMAP image. If you can confirm that this works then I'll update the instructions.

@scott-vsi
Copy link
Contributor

see also: #320 (comment)

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