Skip to content

Updating the docker image to use Ubuntu 24.04 from 22.04 #1445

@pshipton

Description

@pshipton

Testing of #1323 to bump the docker image from using an Ubuntu 22.04 base to use 24.04 ran into the following:

Error: error building at STEP "RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-dev python3-pip git openjdk-11-jdk zip && DEBIAN_FRONTEND="noninteractive" apt-get -q upgrade -y -o Dpkg::options::="--force-confnew" --no-install-recommends && DEBIAN_FRONTEND="noninteractive" apt-get -q install -y -o Dpkg::options::="--force-confnew" --no-install-recommends openssh-server && rm -rf /var/lib/apt/lists/* && sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd && mkdir -p /var/run/sshd && pip3 install -U pip && pip3 install virtualenv && virtualenv myenv -p python3": error while running runtime: exit status 1

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
  python3-xyz, where xyz is the package you are trying to
  install.

  If you wish to install a non-Debian-packaged Python package,
  create a virtual environment using python3 -m venv path/to/venv.
  Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
  sure you have python3-full installed.

  If you wish to install a non-Debian packaged Python application,
  it may be easiest to use pipx install xyz, which will manage a
  virtual environment for you. Make sure you have pipx installed.

  See /usr/share/doc/python3.12/README.venv for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions