I have set env. in Dockerfile as below:
RUN echo "deb
http://mirrors.163.com/debian/ jessie main non-free contrib" > /etc/apt/sources.list.d/jessie.list
RUN echo "deb
http://mirrors.163.com/debian/ jessie-backports main non-free contrib" > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/deb http:\/\/
mirrors.163.com\/debian\/ jessie-updates main non-free contrib/d' /etc/apt/sources.list
BUT still some issues,DA LAO help:
Step 20/41 : RUN echo "deb
http://mirrors.163.com/debian/ jessie main non-free contrib" > /etc/apt/sources.list.d/jessie.list
---> Using cache
---> cb23d5b5c9d1
Step 21/41 : RUN echo "deb
http://mirrors.163.com/debian/ jessie-backports main non-free contrib" > /etc/apt/sources.list.d/jessie-backports.list
---> Running in ce1fd7241d87
Removing intermediate container ce1fd7241d87
---> d442be864daf
Step 22/41 : RUN sed -i '/deb http:\/\/
mirrors.163.com\/debian\/ jessie-updates main non-free contrib/d' /etc/apt/sources.list
---> Running in c76645f59fc1
Removing intermediate container c76645f59fc1
---> f591c86f5b79
Step 23/41 : RUN apt-get -o Acquire::Check-Valid-Until=false update
---> Running in 3245afd2eacf
Get:1
http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign
http://mirrors.163.com jessie-backports InRelease
Ign
http://mirrors.163.com jessie InRelease
Ign
http://mirrors.163.com jessie-backports Release.gpg
Get:2
http://mirrors.163.com jessie Release.gpg [1652 B]
Ign
http://deb.debian.org jessie InRelease
Get:3
http://deb.debian.org jessie-updates InRelease [16.3 kB]
Ign
http://mirrors.163.com jessie-backports Release
Get:4
http://mirrors.163.com jessie Release [77.3 kB]
Get:5
http://security.debian.org jessie/updates/main amd64 Packages [951 kB]
Get:6
http://mirrors.163.com jessie/main amd64 Packages [9098 kB]
Get:7
http://deb.debian.org jessie Release.gpg [1652 B]
Get:8
http://deb.debian.org jessie Release [77.3 kB]
Get:9
http://mirrors.163.com jessie/non-free amd64 Packages [101 kB]
Get:10
http://mirrors.163.com jessie/contrib amd64 Packages [59.2 kB]
Err
http://mirrors.163.com jessie-backports/main amd64 Packages
404 Not Found
Err
http://mirrors.163.com jessie-backports/non-free amd64 Packages
404 Not Found
Err
http://mirrors.163.com jessie-backports/contrib amd64 Packages
404 Not Found
Get:11
http://deb.debian.org jessie-updates/main amd64 Packages [20 B]
Get:12
http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Err
http://deb.debian.org jessie/main amd64 Packages
Err
http://deb.debian.org jessie/main amd64 Packages
Err
http://deb.debian.org jessie/main amd64 Packages
Unable to connect to
deb.debian.org:http:
WFetched 10.4 MB in 17min 46s (9780 B/s)
: Failed to fetch
http://mirrors.163.com/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch
http://mirrors.163.com/debian/dists/jessie-backports/non-free/binary-amd64/Packages 404 Not Found
W: Failed to fetch
http://mirrors.163.com/debian/dists/jessie-backports/contrib/binary-amd64/Packages 404 Not Found
W: Failed to fetch
http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages Unable to connect to
deb.debian.org:http:
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt-get -o Acquire::Check-Valid-Until=false update' returned a non-zero code: 100
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/657742
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.