E: Package 'python' has no installation candidate

Bug #1983726 reported by Zahra P
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
New
Undecided
Unassigned

Bug Description

While building a dockerfile image based on ubuntu:22.04, 'python' package is attempted to be downloaded as a package. However, this error is received during that process:

E: Package 'python' has no installation candidate
The command '/bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y gcc flex bison gettext grep iproute2 iptables make pkgconf python python3-pip && apt-get clean -y' returned a non-zero code: 100

My system's specifications are:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

--------------------
Part of Dockerfile:

FROM ubuntu:22.04

RUN apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y\
    gcc \
    flex \
    bison \
    gettext \
    grep \
    iproute2 \
    iptables \
    make \
    pkgconf \
    python \
    python3-pip \
    && apt-get clean -y

Revision history for this message
Brian Warner (batycoon) wrote :

It appears as though https://packages.ubuntu.com/ does not have a package "python" for Jammy Jellyfish (22.04).
Maybe specifying python2 or python3 instead would resolve your issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.