From 3c0480c8e0cd40ac746f06ddeb267cb865f92259 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 4 Jul 2022 17:37:36 -0500 Subject: [PATCH] Update debian.md On Ubuntu 22.04, using the currently recommended install for the yarn debian package repository method gives the following warning when running `apt update`: W: https://dl.yarnpkg.com/debian/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. https://manpages.ubuntu.com/manpages/jammy/en/man8/apt-key.8.html#deprecation This replaces the current instructions with the recommended method of using the `signed-by` option and placing the key in `/etc/apt/keyrings/` --- lang/en/docs/_installations/debian.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lang/en/docs/_installations/debian.md b/lang/en/docs/_installations/debian.md index b2d23f6dc..fbac4d85e 100644 --- a/lang/en/docs/_installations/debian.md +++ b/lang/en/docs/_installations/debian.md @@ -3,20 +3,20 @@ repository. You will first need to configure the repository:
```sh -curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - -echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list +curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /etc/apt/keyrings/yarn-archive-keyring.gpg > /dev/null +echo "deb [signed-by=/etc/apt/keyrings/yarn-archive-keyring.gpg] https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list ```
```sh -curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - -echo "deb https://dl.yarnpkg.com/debian/ rc main" | sudo tee /etc/apt/sources.list.d/yarn.list +curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /etc/apt/keyrings/yarn-archive-keyring.gpg > /dev/null +echo "deb [signed-by=/etc/apt/keyrings/yarn-archive-keyring.gpg] https://dl.yarnpkg.com/debian/ rc main" | sudo tee /etc/apt/sources.list.d/yarn.list ```
```sh -curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - -echo "deb https://nightly.yarnpkg.com/debian/ nightly main" | sudo tee /etc/apt/sources.list.d/yarn.list +curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /etc/apt/keyrings/yarn-archive-keyring.gpg > /dev/null +echo "deb [signed-by=/etc/apt/keyrings/yarn-archive-keyring.gpg] https://nightly.yarnpkg.com/debian/ nightly main" | sudo tee /etc/apt/sources.list.d/yarn.list ```