Skip to content

How to uninstall paramiko package and install specific version paramiko==1.18.5 package #424

@dhingrachirag

Description

@dhingrachirag

Hi Hi I am facing below issue,

I am facing 1 issue where I am trying to uninstall paramiko package and install specific version paramiko==1.18.5 package.

I am using below docker file to execute:

FROM ppodgorsek/robot-framework:latest

USER root

## # Install system dependencies
RUN apk update \
   && apk --no-cache --virtual .build-deps add \
    gcc \
    g++ \
    libffi-dev \
    linux-headers \
    make \
    musl-dev \
    openssl-dev \
    which \
    wget \
    && \
#  Uninstall paramiko version
  pip3 uninstall parmiko \
    && \
# Install Robot Framework and specific paramiko version
  pip3 install \
    --no-cache-dir \
    -Iv paramiko==1.18.5 \
  && apk del --no-cache --update-cache .build-deps

USER ${ROBOT_UID}:${ROBOT_GID}

By using above docker image I am getting below error:

STEP 4: USER root
37848641cb590c96cb11fe6582a9931d00163e419bff12e42d0032d68d176f30
STEP 5: RUN apk update    && apk --no-cache --virtual .build-deps add     gcc     g++     libffi-dev     linux-headers     make     musl-dev     openssl-dev     which     wget     &&   pip3 uninstall parmiko     &&   pip3 install     --no-cache-dir     -Iv paramiko==1.18.5   && apk del --no-cache --update-cache .build-deps
cannot set HOME environment variable
/bin/sh: line 1: apk: command not found
Error: error building at STEP "RUN apk update    && apk --no-cache --virtual .build-deps add     gcc     g++     libffi-dev     linux-headers     make     musl-dev     openssl-dev     which     wget     &&   pip3 uninstall parmiko     &&   pip3 install     --no-cache-dir     -Iv paramiko==1.18.5   && apk del --no-cache --update-cache .build-deps": error while running runtime: exit status 127
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 125

Requesting you to please assist on this issue as struck in this from while.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions