Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile:Unable to locate package python3.6 #38

Open
plf1996 opened this issue Sep 5, 2023 · 6 comments
Open

Dockerfile:Unable to locate package python3.6 #38

plf1996 opened this issue Sep 5, 2023 · 6 comments

Comments

@plf1996
Copy link

plf1996 commented Sep 5, 2023

=> 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

@SimmerChan
Copy link
Owner

SimmerChan commented Sep 5, 2023 via email

@chuanwise
Copy link

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

@SimmerChan
Copy link
Owner

SimmerChan commented Oct 21, 2023 via email

@Bingjie-Xu
Copy link

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

@Sun0308
Copy link

Sun0308 commented Jan 15, 2024

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

@SimmerChan
Copy link
Owner

SimmerChan commented Jan 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants