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

Dockerfile build failed #163

Open
weiwosuoai opened this issue May 8, 2021 · 2 comments
Open

Dockerfile build failed #163

weiwosuoai opened this issue May 8, 2021 · 2 comments

Comments

@weiwosuoai
Copy link

`
Step 1/15 : FROM nvidia/cuda:11.1-base-ubuntu20.04
---> 287475453634
Step 2/15 : RUN apt update && DEBIAN_FRONTEND=noninteractive apt install git bzip2 wget unzip python3-pip python3-dev cmake libgl1-mesa-dev python-is-python3 libgtk2.0-dev -yq
---> Running in 9a2b71f13ce1

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [21.7 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Ign:3 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease
Get:8 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [244 kB]
Ign:4 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu2004/x86_64 InRelease
Get:7 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Release [697 B]
Get:9 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Release.gpg [836 B]
Get:10 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Ign:12 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Packages
Get:11 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu2004/x86_64 Release [564 B]
Get:13 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu2004/x86_64 Release.gpg [833 B]
Ign:12 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Packages
Get:14 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [691 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Ign:12 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Packages
Get:16 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu2004/x86_64 Packages [2445 B]
Err:12 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 Packages
404 Not Found [IP: 180.101.196.129 443]
Get:17 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [786 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [276 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1203 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [29.7 kB]
Get:24 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [962 kB]
Get:25 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [4305 B]
Fetched 17.6 MB in 21s (824 kB/s)
Reading package lists...
E: Failed to fetch https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64/by-hash/SHA256/251dddbfbcee20425d45477ce56419b362173aa143e1d0f6d535254f1fc428a7 404 Not Found [IP: 180.101.196.129 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt update && DEBIAN_FRONTEND=noninteractive apt install git bzip2 wget unzip python3-pip python3-dev cmake libgl1-mesa-dev python-is-python3 libgtk2.0-dev -yq' returned a non-zero code: 100
`

@gpscsy
Copy link

gpscsy commented May 31, 2021

I have the same problem

@ruegdeg
Copy link

ruegdeg commented Jun 10, 2021

just made a singularity container with the following lines/receipt, works good. maybe you can use/find the solution there?

Bootstrap: docker
From: ubuntu:20.04
From: python:3.7
%environment
export LC_ALL=C

%post
truncate -s0 /tmp/preseed.cfg;
echo "tzdata tzdata/Areas select Europe" >> /tmp/preseed.cfg;
echo "tzdata tzdata/Zones/Europe select Berlin" >> /tmp/preseed.cfg;
debconf-set-selections /tmp/preseed.cfg &&
rm -f /etc/timezone /etc/localtime &&
apt-get update &&
apt-get install -y tzdata
apt -y update -y
apt-get install ffmpeg libsm6 libxext6 -y
apt-get install build-essential cmake -y
apt-get install libgtk-3-dev -y
apt-get install libboost-all-dev -y
pip install torch torchvision cmake dlib scikit-image easydict PyYAML dominate>=2.3.1 dill tensorboardX scipy opencv-python einops PySimpleGUI

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