From 11775ed6b72bef7e12892cbe2a151d55f831cc48 Mon Sep 17 00:00:00 2001 From: wschwab <31592931+wschwab@users.noreply.github.com> Date: Thu, 24 Dec 2020 10:19:41 +0200 Subject: [PATCH] Update debian.md Added workaround for `apt-key` deprecation errors --- engine/install/debian.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/engine/install/debian.md b/engine/install/debian.md index edc1f7f184f4..d64c32cb1433 100644 --- a/engine/install/debian.md +++ b/engine/install/debian.md @@ -93,7 +93,16 @@ from the repository. ```bash $ curl -fsSL {{ download-url-base }}/gpg | sudo apt-key add - ``` - + Newer versions of Debian have deprecated using `apt-key` like this. If you + are receiving the following error: + ``` + Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). + ``` + then you can avoid it by using the following instead: + ``` + curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key --keyring /etc/apt/trusted.gpg.d/docker-apt-key.gpg add - + ``` + Verify that you now have the key with the fingerprint `9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88`, by searching for the last 8 characters of the fingerprint.