realwangyibo
V2EX  ›  Docker

E: Unable to locate package python3-pip

  •  
  •   realwangyibo ·
    realwangyibo · Oct 23, 2016 · 10116 views
    This topic created in 3495 days ago, the information mentioned may be changed or developed.

    想把 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
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5071 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 09:21 · PVG 17:21 · LAX 02:21 · JFK 05:21
    ♥ Do have faith in what you're doing.