Skip to content

Can't install swig3.0 in docker container using airflow2.3.2-python3.8 #25307

@HiGal

Description

@HiGal

Apache Airflow version

2.3.2

What happened

I am trying to install swig3.0 inside airflow container for Jamspell using following Dockerfile

FROM apache/airflow:2.3.2-python3.8

USER root

RUN apt-get update \
  && apt-get install -y --no-install-recommends \
         build-essential git \
  && apt-get autoremove -yqq --purge \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/* \
  && apt-get update \
  && apt install -y swig3.0

I got following error

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package swig3.0
E: Couldn't find any package by glob 'swig3.0'

What you think should happen instead

When I used previous version 2.1.0 I didn't meet those error.

How to reproduce

To reproduce you should try to build following docker image from this Dockerfile:

FROM apache/airflow:2.3.2-python3.8

USER root

RUN apt-get update \
  && apt-get install -y --no-install-recommends \
         build-essential git \
  && apt-get autoremove -yqq --purge \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/* \
  && apt-get update \
  && apt install -y swig3.0

Operating System

MacOS

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions