floydhub / dl-docker

An all-in-one Docker image for deep learning. Contains all the popular DL frameworks (TensorFlow, Theano, Torch, Caffe, etc.)

Home Page:https://www.floydhub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build failed - failed to fetch & unable to locate package

LearnedVector opened this issue · comments

Hello when running

docker build -t floydhub/dl-docker:gpu -f Dockerfile.gpu .

I get the following errors

Sending build context to Docker daemon 128 kB
Step 1/34 : FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu14.04
---> c635a6722abd
Step 2/34 : MAINTAINER Sai Soundararaj saip@outlook.com
---> Using cache
---> 13178d11a760
Step 3/34 : ARG THEANO_VERSION=rel-0.8.2
---> Using cache
---> 3cc333a18c08
Step 4/34 : ARG TENSORFLOW_VERSION=0.12.1
---> Using cache
---> a4e77ddb8bb5
Step 5/34 : ARG TENSORFLOW_ARCH=gpu
---> Using cache
---> ca78b0733ed2
Step 6/34 : ARG KERAS_VERSION=1.2.0
---> Using cache
---> 0dfd155b4adc
Step 7/34 : ARG LASAGNE_VERSION=v0.1
---> Using cache
---> 63ae159c1a9e
Step 8/34 : ARG TORCH_VERSION=latest
---> Using cache
---> ae217e15bc25
Step 9/34 : ARG CAFFE_VERSION=master
---> Using cache
---> fd930f1e6f9b
Step 10/34 : RUN apt-get update && apt-get install -y bc build-essential cmake curl g++ gfortran git libffi-dev libfreetype6-dev libhdf5-dev libjpeg-dev liblcms2-dev libopenblas-dev liblapack-dev libopenjpeg2 libpng12-dev libssl-dev libtiff5-dev libwebp-dev libzmq3-dev nano pkg-config python-dev software-properties-common unzip vim wget zlib1g-dev qt5-default libvtk6-dev zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev libopenexr-dev libgdal-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev yasm libopencore-amrnb-dev libopencore-amrwb-dev libv4l-dev libxine2-dev libtbb-dev libeigen3-dev python-dev python-tk python-numpy python3-dev python3-tk python3-numpy ant default-jdk doxygen && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/* && update-alternatives --set libblas.so.3 /usr/lib/openblas-base/libblas.so.3
---> Running in b020db809bdf
Err http://developer.download.nvidia.com InRelease

Err http://developer.download.nvidia.com InRelease

Err http://developer.download.nvidia.com Release.gpg
Could not resolve 'developer.download.nvidia.com'
Err http://developer.download.nvidia.com Release.gpg
Could not resolve 'developer.download.nvidia.com'
Err http://archive.ubuntu.com trusty InRelease

Err http://archive.ubuntu.com trusty-updates InRelease

Err http://archive.ubuntu.com trusty-security InRelease

Err http://archive.ubuntu.com trusty Release.gpg
Could not resolve 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-security Release.gpg
Could not resolve 'archive.ubuntu.com'
Reading package lists...
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Failed to fetch http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/InRelease

W: Failed to fetch http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1404/x86_64/InRelease

W: Failed to fetch http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/Release.gpg Could not resolve 'developer.download.nvidia.com'

W: Failed to fetch http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1404/x86_64/Release.gpg Could not resolve 'developer.download.nvidia.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Package cmake is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package pkg-config is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python3-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python3-tk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libpng12-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libpng12-0

E: Unable to locate package bc
E: Package 'cmake' has no installation candidate
E: Unable to locate package curl
E: Unable to locate package gfortran
E: Unable to locate package git
E: Unable to locate package libffi-dev
E: Unable to locate package libfreetype6-dev
E: Unable to locate package libhdf5-dev
E: Unable to locate package libjpeg-dev
E: Unable to locate package liblcms2-dev
E: Unable to locate package libopenblas-dev
E: Unable to locate package liblapack-dev
E: Unable to locate package libopenjpeg2
E: Package 'libpng12-dev' has no installation candidate
E: Unable to locate package libssl-dev
E: Unable to locate package libtiff5-dev
E: Unable to locate package libwebp-dev
E: Unable to locate package libzmq3-dev
E: Unable to locate package nano
E: Package 'pkg-config' has no installation candidate
E: Unable to locate package python-dev
E: Unable to locate package software-properties-common
E: Unable to locate package unzip
E: Package 'vim' has no installation candidate
E: Unable to locate package wget
E: Unable to locate package zlib1g-dev
E: Unable to locate package qt5-default
E: Unable to locate package libvtk6-dev
E: Unable to locate package zlib1g-dev
E: Unable to locate package libjpeg-dev
E: Unable to locate package libwebp-dev
E: Unable to locate package libpng-dev
E: Unable to locate package libtiff5-dev
E: Unable to locate package libjasper-dev
E: Unable to locate package libopenexr-dev
E: Unable to locate package libgdal-dev
E: Unable to locate package libdc1394-22-dev
E: Unable to locate package libavcodec-dev
E: Unable to locate package libavformat-dev
E: Unable to locate package libswscale-dev
E: Unable to locate package libtheora-dev
E: Unable to locate package libvorbis-dev
E: Unable to locate package libxvidcore-dev
E: Unable to locate package libx264-dev
E: Unable to locate package yasm
E: Unable to locate package libopencore-amrnb-dev
E: Unable to locate package libopencore-amrwb-dev
E: Unable to locate package libv4l-dev
E: Unable to locate package libxine2-dev
E: Unable to locate package libtbb-dev
E: Unable to locate package libeigen3-dev
E: Unable to locate package python-dev
E: Unable to locate package python-tk
E: Unable to locate package python-numpy
E: Package 'python3-dev' has no installation candidate
E: Package 'python3-tk' has no installation candidate
E: Unable to locate package python3-numpy
E: Unable to locate package ant
E: Unable to locate package default-jdk
E: Unable to locate package doxygen
The command '/bin/sh -c apt-get update && apt-get install -y bc build-essential cmake curl g++ gfortran git libffi-dev libfreetype6-dev libhdf5-dev libjpeg-dev liblcms2-dev libopenblas-dev liblapack-dev libopenjpeg2 libpng12-dev libssl-dev libtiff5-dev libwebp-dev libzmq3-dev nano pkg-config python-dev software-properties-common unzip vim wget zlib1g-dev qt5-default libvtk6-dev zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev libopenexr-dev libgdal-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev yasm libopencore-amrnb-dev libopencore-amrwb-dev libv4l-dev libxine2-dev libtbb-dev libeigen3-dev python-dev python-tk python-numpy python3-dev python3-tk python3-numpy ant default-jdk doxygen && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/* && update-alternatives --set libblas.so.3 /usr/lib/openblas-base/libblas.so.3' returned a non-zero code: 100

and when i run

nvidia-docker run -it -p 8888:8888 -p 6006:6006 -v /sharedfolder:/root/sharedfolder floydhub/dl-docker:gpu bash

I get

nvidia-docker | 2017/05/20 19:06:12 Error: Error response from daemon: manifest for floydhub/dl-docker:gpu not found
I've tried re-running the build multiple times, and still get the same error. what could be the problem?

closed. This had to do with me trying to do it through a vpn. After doing it on my network it seemed to work correctly.