KG-demo-for-movie icon indicating copy to clipboard operation
KG-demo-for-movie copied to clipboard

Dockerfile:Unable to locate package python3.6

Open plf1996 opened this issue 1 year ago • 6 comments

=> ERROR [ 9/16] RUN apt-get -y install python3.6 1.9s

[ 9/16] RUN apt-get -y install python3.6: 0.466 Reading package lists... 1.598 Building dependency tree... 1.794 Reading state information... 1.870 E: Unable to locate package python3.6 1.870 E: Couldn't find any package by glob 'python3.6' 1.870 E: Couldn't find any package by regex 'python3.6'


Dockerfile:11

9 | RUN apt-get update 10 | RUN apt-get upgrade -y 11 | >>> RUN apt-get -y install python3.6 12 | RUN apt-get -y install python3.6-dev 13 | RUN apt-get -y install default-jdk

ERROR: failed to solve: process "/bin/sh -c apt-get -y install python3.6" did not complete successfully: exit code: 100

plf1996 avatar Sep 05 '23 06:09 plf1996

我已收到您的邮件,祝您生活愉快!

SimmerChan avatar Sep 05 '23 06:09 SimmerChan

Complete Log:

#0 building with "default" instance using docker driver

#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 890B done
#2 DONE 0.1s

#3 [internal] load metadata for docker.io/library/ubuntu:16.04
#3 DONE 1.1s

#4 [ 1/15] FROM docker.io/library/ubuntu:16.04@sha256:1f1a2d56de1d604801a9671f301190704c25d604a416f59e03c04f5c6ffee0d6
#4 DONE 0.0s

#5 [ 2/15] RUN sed -i 's#http://archive.ubuntu.com/#http://mirrors.tuna.tsinghua.edu.cn/#' /etc/apt/sources.list
#5 CACHED

#6 [ 3/15] RUN apt-get update
#6 CACHED

#7 [ 4/15] RUN apt-get -y install python-software-properties
#7 CACHED

#8 [ 6/15] RUN add-apt-repository ppa:deadsnakes/ppa -y
#8 CACHED

#9 [ 5/15] RUN apt-get -y install software-properties-common
#9 CACHED

#10 [ 7/15] RUN apt-get update
#10 CACHED

#11 [internal] load build context
#11 transferring context: 40.33kB 0.0s done
#11 DONE 0.1s

#12 [ 8/15] RUN apt-get -y install python3.6
#12 0.393 Reading package lists...
#12 1.175 Building dependency tree...
#12 1.327 Reading state information...
#12 1.374 E: Unable to locate package python3.6
#12 1.374 E: Couldn't find any package by glob 'python3.6'
#12 1.374 E: Couldn't find any package by regex 'python3.6'
#12 ERROR: process "/bin/sh -c apt-get -y install python3.6" did not complete successfully: exit code: 100
------
 > [ 8/15] RUN apt-get -y install python3.6:


1.327 Reading state information...
1.374 E: Unable to locate package python3.6
1.374 E: Couldn't find any package by glob 'python3.6'
1.374 E: Couldn't find any package by regex 'python3.6'
------
Dockerfile:10
--------------------
   8 |     RUN add-apt-repository ppa:deadsnakes/ppa -y
   9 |     RUN apt-get update
  10 | >>> RUN apt-get -y install python3.6
  11 |     RUN apt-get -y install python3.6-dev
  12 |     RUN apt-get -y install default-jdk
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get -y install python3.6" did not complete successfully: exit code: 100

chuanwise avatar Oct 21 '23 08:10 chuanwise

我已收到您的邮件,祝您生活愉快!

SimmerChan avatar Oct 21 '23 08:10 SimmerChan

我也遇到了同样的问题,请问改如何解决呢?

Bingjie-Xu avatar Oct 29 '23 13:10 Bingjie-Xu

请问这个问题博主还没解答吗?

Sun0308 avatar Jan 15 '24 06:01 Sun0308

我已收到您的邮件,祝您生活愉快!

SimmerChan avatar Jan 15 '24 06:01 SimmerChan