From d79ab16c235087726e08193f3a0a13079a1640be Mon Sep 17 00:00:00 2001 From: Daniel O Date: Sat, 25 Oct 2025 12:24:07 -0600 Subject: [PATCH] docs: update Debian installation instructions to include APT sources for Debian 12 and newer --- content/manuals/engine/install/debian.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/content/manuals/engine/install/debian.md b/content/manuals/engine/install/debian.md index 4ba32d1a1099..a09bf1331609 100644 --- a/content/manuals/engine/install/debian.md +++ b/content/manuals/engine/install/debian.md @@ -116,6 +116,17 @@ Docker from the repository. sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: + # Debian 12 and newer + cat << EOF | sudo tee -a /etc/apt/sources.list.d/docker.sources + Types: deb + URIs: https://download.docker.com/linux/debian + Suites: $(. /etc/os-release && echo "$VERSION_CODENAME") + Components: stable + Architectures: $(dpkg --print-architecture) + Signed-By: /etc/apt/keyrings/docker.asc + EOF + + # Older versions of Debian echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] {{% param "download-url-base" %}} \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ @@ -123,6 +134,11 @@ Docker from the repository. sudo apt-get update ``` + > [!NOTE] + > Debain 12 and new supports APT sources files in the `/etc/apt/sources.list.d/` directory. + > This is preferred over adding entries to the main `/etc/apt/sources.list` file. + > [Debian Documentation](APT sources files) + > [!NOTE] > > If you use a derivative distribution, such as Kali Linux,