E: Unable to locate package python3-pip

2016-10-23 19:32:15 +08:00
 realwangyibo

想把 flask 应用构建成 docker 镜像,然后遇到了这个错误

sources.list 是网易的 apt 源

Dockerfile:

FROM ubuntu:14.04

COPY ./sources.list /etc/apt/sources.list

RUN apt-get -y update
RUN apt-get -y install python3 \
python3-pip
#python3-setuptools

以下略

镜像构建信息:

Sending build context to Docker daemon 57.34 kB
Step 1 : FROM ubuntu:14.04
 ---> 1e0c3dd64ccd
Step 2 : COPY ./sources.list /etc/apt/sources.list
 ---> Using cache
 ---> 6071fba143f6
Step 3 : RUN apt-get -y update
 ---> Using cache
 ---> 184f7abcfd21
Step 4 : RUN apt-get -y install python3 python3-pip
 ---> Running in 5b8295da4a82
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package python3-pip
The command '/bin/sh -c apt-get -y install python3 python3-pip' returned a non-zero code: 100
9592 次点击
所在节点    Docker
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/314829

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX