Stop using apt-key (#17)

using the signed-by keys instead of the less secure apt-key or trusted.gpg.d
This commit is contained in:
Tim White
2022-10-11 18:51:49 +08:00
committed by GitHub
parent ce6ab97c02
commit 53ed28dff8

View File

@@ -15,8 +15,8 @@ tags:
```bash ```bash
sudo apt-get update sudo apt-get update
sudo apt-get install ca-certificates curl gnupg -y sudo apt-get install ca-certificates curl gnupg -y
curl -L https://pkgs.wiretrustee.com/debian/public.key | sudo apt-key add - curl -sSL https://pkgs.wiretrustee.com/debian/public.key | sudo gpg --dearmor --output /usr/share/keyrings/wiretrustee-archive-keyring.gpg
echo 'deb https://pkgs.wiretrustee.com/debian stable main' | sudo tee /etc/apt/sources.list.d/wiretrustee.list echo 'deb [signed-by=/usr/share/keyrings/wiretrustee-archive-keyring.gpg] https://pkgs.wiretrustee.com/debian stable main' | sudo tee /etc/apt/sources.list.d/wiretrustee.list
``` ```
2. Update APT's cache 2. Update APT's cache