V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
realwangyibo
V2EX  ›  Docker

E: Unable to locate package python3-pip

  •  
  •   realwangyibo ·
    realwangyibo · Oct 23, 2016 · 10080 views
    This topic created in 3479 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   ·   2478 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:16 · PVG 15:16 · LAX 00:16 · JFK 03:16
    ♥ Do have faith in what you're doing.