Can't install Python package on Alpine Docker anymore [duplicate]
Asked Answered
E

1

20

I have a problem that started very recently. The Docker Alpine Python library is not installable any more:

apk update && apk upgrade && apk add python
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
v3.14.2-119-g9c4e1aa60c [https://dl-cdn.alpinelinux.org/alpine/v3.14/main]
v3.14.2-120-g90167408c8 [https://dl-cdn.alpinelinux.org/alpine/v3.14/community]
OK: 14943 distinct packages available
(1/1) Upgrading alpine-keys (2.3-r1 -> 2.4-r0)
  0%                                               2% #                                             5% ##                                            7% ###                                          10% ####                                         12% #####                                        15% ######                                       17% #######                                      20% #########                                    23% ##########                                   25% ###########                                  28% ############                                 30% #############                                33% ##############                               35% ###############                              38% ################                             41% ##################                           43% ###################                          46% ####################                         48% #####################                        51% ######################                       53% #######################                     % ############################################OK: 7 MiB in 16 packages
ERROR: unable to select packages:
  python (no such package):
    required by: world[python]

Exited with code exit status 1
Evangelinaevangeline answered 5/11, 2021 at 23:20 Comment(0)
P
26

You are trying to use the python (alias) library instead of python3.

Try to use apk update && apk upgrade && apk add python3 instead.

Pennsylvania answered 5/11, 2021 at 23:21 Comment(1)
Library? Isn’t it an executable?Kathykathye

© 2022 - 2024 — McMap. All rights reserved.