From af5f71b4d47ef155f4c078809ffba5c93e0f9c2a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 20 May 2026 03:51:28 +0000 Subject: [PATCH] docs: rewrite speculative Dockerfile snippet with apt-cache discovery step Agent-Logs-Url: https://github.com/phusion/baseimage-docker/sessions/dda28199-53b3-47bb-acf4-8aec529f3e22 Co-authored-by: Theaxiom <57013+Theaxiom@users.noreply.github.com> --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bdf4901..8d7a0c7 100644 --- a/README.md +++ b/README.md @@ -679,19 +679,27 @@ When building baseimage-docker from source, you can set `INSTALL_GNU_COREUTILS=1 docker build --build-arg BASE_IMAGE=ubuntu:26.04 --build-arg INSTALL_GNU_COREUTILS=1 image/ ``` -Alternatively, you can install GNU Coreutils in your own Dockerfile that derives from a 26.04-based baseimage: +Alternatively, you can install GNU Coreutils in your own Dockerfile that derives from a 26.04-based baseimage. Because Ubuntu 26.04 packaging is not yet finalised, first discover the correct package names: + +```bash +# Discover available GNU coreutils and traditional sudo packages on Ubuntu 26.04: +docker run --rm ubuntu:26.04 sh -c \ + 'apt-get update -qq && apt-cache search coreutils && apt-cache search sudo | grep -i traditional' +``` + +Once you have confirmed the actual package names, install them in your Dockerfile: ```Dockerfile FROM phusion/baseimage: # Replace uutils-coreutils with GNU Coreutils and sudo-rs with traditional sudo. +# Substitute and with the actual +# package names found via 'apt-cache search' on Ubuntu 26.04 above. RUN apt-get update && \ - apt-get install -y --no-install-recommends coreutils-gnu sudo-traditional && \ + apt-get install -y --no-install-recommends && \ apt-get clean && rm -rf /var/lib/apt/lists/* ``` -> **Note:** The exact replacement package names (`coreutils-gnu`, `sudo-traditional`) may vary. Run `apt-cache search coreutils` and `apt-cache search sudo` inside an Ubuntu 26.04 container to discover the available alternatives. - ## Conclusion