Skip to content

Commit 11775ed

Browse files
authored
Update debian.md
Added workaround for `apt-key` deprecation errors
1 parent 3e06ed6 commit 11775ed

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

engine/install/debian.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,16 @@ from the repository.
9393
```bash
9494
$ curl -fsSL {{ download-url-base }}/gpg | sudo apt-key add -
9595
```
96-
96+
Newer versions of Debian have deprecated using `apt-key` like this. If you
97+
are receiving the following error:
98+
```
99+
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
100+
```
101+
then you can avoid it by using the following instead:
102+
```
103+
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key --keyring /etc/apt/trusted.gpg.d/docker-apt-key.gpg add -
104+
```
105+
97106
Verify that you now have the key with the fingerprint
98107
`9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88`, by searching for the
99108
last 8 characters of the fingerprint.

0 commit comments

Comments
 (0)