alpine-ssh-client icon indicating copy to clipboard operation
alpine-ssh-client copied to clipboard

Alpine can not choose Python Package automatically

Open zombozo12 opened this issue 3 years ago • 0 comments

Hi, I got this error from Gitlab CI. So, Alpine has an issue where it cannot automatically choose the package like the old days. In this case, python is the one that cannot be choose. I might have a temporary solutions for now by using older version of kroniak/ssh-client, like kroniak/ssh-client:3.11. But, I would love suggest to add python package with specified version on this ssh-client.

Errors:

$ eval "$CI_PRE_CLONE_SCRIPT"
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/orgname/learning-management-system/.git/
Created fresh repository.
Checking out 561cd87d as master...
Skipping Git submodules setup
Executing "step_script" stage of the job script 00:02
Using docker image sha256:4386443c780e354ed458bdbfa20302ad2ad9d078b5c5e96bcaeae6bd530818b8 for kroniak/ssh-client:latest with digest kroniak/ssh-client@sha256:0acfba2971157d2a44717d97be614ecb35ce02305905d9a1de3c76e2ff2bb355 ...
$ apk add --update make ca-certificates openssl python py-pip python-dev git openssh-client curl
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
ERROR: unable to select packages:
  python (no such package):
    required by: world[python]
  python-dev (no such package):
    required by: world[python-dev]
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit code 1

Solution: (source: https://stackoverflow.com/a/62652692)

apk add python2
// or
apk add python3

zombozo12 avatar Dec 13 '21 09:12 zombozo12