FROM debian:oldstable-slim
# Build tmux from source using autotools bootstrap (autogen.sh)
# and install into /usr/local
ENV DEBIAN_FRONTEND=noninteractive
# Install build-time dependencies
RUN set -eux \
apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
autoconf \
automake \
libtool \
pkg-config \
bison \
libevent-dev \
libncurses-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy source and build
WORKDIR /src
COPY . /src
RUN sh autogen.sh \
&& ./configure --prefix=/usr/local \
&& make -j"$(nproc)" \
&& make install
# Default to showing tmux version when running the container
ENTRYPOINT ["/usr/local/bin/tmux"]
CMD ["-V"]
# Ignore version control and build artifacts .git/ *.o *.a *.so *.lo *.la *.dll *.dylib build/ *CMakeFiles* Makefile.in config/ ## tmux builds can generate these *.log *.mk *.dSYM/
- Build status: VerifyBuild status: build_failed - Concerns - Potential missing/optional runtime deps for tmux (e.g., libtermkey) could affect builds. - Using 'sh autogen.sh' may fail if bash-specific features are required; consider './autogen.sh' to honor the script’s shebang. - FROM debian:oldstable-slim is very old; may cause compatibility/security issues. Consider newer Debian tag or pin to a supported base image. - Build error - The build failed with: "ERROR: failed to build: failed to solve: process \"/bin/sh -c set -eux apt-get update && apt-get install -y --no-install-recommends build-essential autoconf automake libtool pkg-config bison libevent-dev libncurses-dev && rm -rf /var/lib/apt/lists/*\" did not complete successfully: exit code: 100" - Repeated apt errors during the failing step show the exit condition: "E: Unable to locate package ..." - Failing command/step - Step: [2/5] RUN set -eux apt-get update && apt-get install -y --no-install-recommends build-essential autoconf automake libtool pkg-config bison libevent-dev libncurses-dev && rm -rf /var/lib/apt/lists/* - Exact command string logged: RUN set -eux apt-get update && apt-get install -y --no-install-recommends build-essential autoconf automake libtool pkg-config bison libevent-dev libncurses-dev && rm -rf /var/lib/apt/lists/* - Missing packages (as reported) - build-essential - autoconf - automake - libtool - pkg-config - bison - libevent-dev - libncurses-dev - Version mismatch info - Base image used: debian:oldstable-slim with digest sha256:65399367e49bfa19ca5929fec55cdbd7cf8f192a388bdb37a0b0142f9d4ac3d8 - No other version mismatch details provided.
FROM debian:bookworm-slim
# Build tmux from source using autotools bootstrap (autogen.sh)
# and install into /usr/local
ENV DEBIAN_FRONTEND=noninteractive
# Install build-time dependencies
RUN set -eux \
apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
autoconf \
automake \
libtool \
pkg-config \
bison \
libevent-dev \
libncurses-dev \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Copy source and build
WORKDIR /src
COPY . /src
RUN ./autogen.sh \
&& ./configure --prefix=/usr/local \
&& make -j"$(nproc)" \
&& make install
# Default to showing tmux version when running the container
ENTRYPOINT ["/usr/local/bin/tmux"]
CMD ["-V"]
Summary:
- Failing step
- Dockerfile [2/5] RUN set -eux apt-get update && apt-get install -y --no-install-recommends build-essential autoconf automake libtool pkg-config bison libevent-dev libncurses-dev ca-certificates && rm -rf /var/lib/apt/lists/*
- Exact error message and exit code
- Process did not complete: exit code: 100
- Error output:
- E: Unable to locate package build-essential
- E: Unable to locate package autoconf
- E: Unable to locate package automake
- E: Unable to locate package libtool
- E: Unable to locate package pkg-config
- E: Unable to locate package bison
- E: Unable to locate package libevent-dev
- E: Unable to locate package libncurses-dev
- E: Package 'ca-certificates' has no installation candidate
- Missing packages or files mentioned
- Missing/unlocatable packages during apt-get install: build-essential, autoconf, automake, libtool, pkg-config, bison, libevent-dev, libncurses-dev
- ca-certificates package has no installation candidate
- Version mismatch info
- Base image used: Debian bookworm-slim
- Image reference: debian:bookworm-slim@sha256:f06537653ac770703bc45b4b113475bd402f451e85223f0f2837acbf89ab020a
- No explicit version mismatch reported in the output.FROM debian:stable-slim
# Build tmux from source using autotools bootstrap (autogen.sh)
# and install into /usr/local
ENV DEBIAN_FRONTEND=noninteractive
# Install build-time dependencies
RUN set -eux \
apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
autoconf \
automake \
libtool \
pkg-config \
bison \
libevent-dev \
libncurses-dev \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Copy source and build
WORKDIR /src
COPY . /src
RUN ./autogen.sh \
&& ./configure --prefix=/usr/local \
&& make -j"$(nproc)" \
&& make install
# Default to showing tmux version when running the container
ENTRYPOINT ["/usr/local/bin/tmux"]
CMD ["-V"]