V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
realwangyibo
V2EX  ›  Docker

E: Unable to locate package python3-pip

  •  
  •   realwangyibo ·
    realwangyibo · 2016-10-23 19:32:15 +08:00 · 9590 次点击
    这是一个创建于 2741 天前的主题,其中的信息可能已经有所发展或是发生改变。

    想把 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
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1240 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:18 · PVG 07:18 · LAX 16:18 · JFK 19:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.