zhihu/kids

Error to build with Dockerfile

Closed this issue · 3 comments

Here's the error message.

➜  kids git:(master) sudo docker build -t zhihu/kids .                                                   [sudo] password for tobe:                                                                          [18/131]
Sending build context to Docker daemon 2.293 MB
Sending build context to Docker daemon 
Step 0 : FROM debian:wheezy
Pulling repository debian
479215127fa7: Download complete 
511136ea3c5a: Download complete 
1aeada447715: Download complete 
 ---> 479215127fa7
Step 1 : MAINTAINER Li Yichao <liyichao.good@gmail.com>
 ---> Running in 5ce60c1353ee
 ---> a1eeb46c4294
Removing intermediate container 5ce60c1353ee
Step 2 : RUN apt-get update &&  apt-get install -yq --no-install-recommends  build-essential  libtool  automake
 ---> Running in 59f4d348c2c7
Get:1 http://security.debian.org wheezy/updates Release.gpg [836 B]
Get:2 http://security.debian.org wheezy/updates Release [102 kB]
Get:3 http://http.debian.net wheezy Release.gpg [1655 B]
Get:4 http://security.debian.org wheezy/updates/main amd64 Packages [291 kB]
Get:5 http://http.debian.net wheezy-updates Release.gpg [836 B]
Get:6 http://http.debian.net wheezy-updates Release [124 kB]
Ign http://http.debian.net wheezy Release
Get:7 http://http.debian.net wheezy/main amd64 Packages [7625 kB]
Get:8 http://http.debian.net wheezy-updates/main amd64 Packages [3329 B]
Fetched 8148 kB in 47s (172 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
The following extra packages will be installed:
  autoconf autotools-dev binutils bzip2 cpp cpp-4.7 dpkg-dev file g++ g++-4.7
  gcc gcc-4.7 libc-dev-bin libc6-dev libclass-isa-perl libdpkg-perl libgdbm3
  libgmp10 libgomp1 libitm1 libmagic1 libmpc2 libmpfr4 libquadmath0
  libstdc++6-4.7-dev libswitch-perl libtimedate-perl linux-libc-dev m4 make
  patch perl perl-modules
Suggested packages:
  autoconf2.13 autoconf-archive gnu-standards autoconf-doc gettext
  binutils-doc bzip2-doc cpp-doc gcc-4.7-locales debian-keyring g++-multilib
  g++-4.7-multilib gcc-4.7-doc libstdc++6-4.7-dbg gcc-multilib manpages-dev
  automake1.9 flex bison gdb gcc-doc gcc-4.7-multilib libmudflap0-4.7-dev
  libgcc1-dbg libgomp1-dbg libitm1-dbg libquadmath0-dbg libmudflap0-dbg
  libcloog-ppl0 libppl-c2 libppl7 binutils-gold glibc-doc libstdc++6-4.7-doc
  libtool-doc automaken gfortran fortran95-compiler gcj make-doc ed
  diffutils-doc perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
  libpod-plainer-perl
Recommended packages:
  fakeroot libalgorithm-merge-perl libfile-fcntllock-perl libltdl-dev
The following NEW packages will be installed:
  autoconf automake autotools-dev binutils build-essential bzip2 cpp cpp-4.7
  dpkg-dev file g++ g++-4.7 gcc gcc-4.7 libc-dev-bin libc6-dev
  libclass-isa-perl libdpkg-perl libgdbm3 libgmp10 libgomp1 libitm1 libmagic1
  libmpc2 libmpfr4 libquadmath0 libstdc++6-4.7-dev libswitch-perl
  libtimedate-perl libtool linux-libc-dev m4 make patch perl perl-modules
0 upgraded, 36 newly installed, 0 to remove and 0 not upgraded.
Need to get 46.3 MB of archives.
After this operation, 135 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libgdbm3 libgmp10 libgomp1 libitm1 libmpfr4 libquadmath0 libmpc2 bzip2
  libclass-isa-perl perl-modules perl libswitch-perl m4 patch autoconf
  autotools-dev automake binutils libc-dev-bin libc6-dev cpp-4.7 cpp gcc-4.7
  gcc libstdc++6-4.7-dev g++-4.7 g++ make libtimedate-perl build-essential
  libtool
E: There are problems and -y was used without --force-yes
2015/01/04 10:53:28 The command [/bin/sh -c apt-get update &&  apt-get install -yq --no-install-recommends  build-essential  libtool  automake] returned a non-zero code: 255

Currently, apt-get update fails because of 403 error like:

Get:6 http://http.debian.net/debian/ wheezy/main bzip2 amd64 1.0.6-4 [50.1 kB]
Err http://http.debian.net/debian/ wheezy/main libmpc2 amd64 0.9-4
403 Forbidden [IP: 193.140.100.100 80]

change to another mirror fixes this, see #32

fix in #34

Nice 👍