docs(site): update installation instructions for apt key location (#2953)

The current installation instructions mention `/usr/share/keyrings` as the location to copy the apt key files to, but according to the sources.list manpage, the correct location for manually installed keys would be `/etc/apt/keyrings`.

From the sources.list manpage:
> The recommended locations for keyrings are /usr/share/keyrings for keyrings managed by packages, and /etc/apt/keyrings for keyrings managed by the system operator.

From the apt-key manpage:
> FILES
>        /etc/apt/trusted.gpg
>            Keyring of local trusted keys, new keys will be added here. Configuration Item: Dir::Etc::Trusted.
> 
>        /etc/apt/trusted.gpg.d/
>            File fragments for the trusted keys, additional keyrings can be stored here (by other packages or the administrator). Configuration Item Dir::Etc::TrustedParts.
> 
>        /etc/apt/keyrings/
>            Place to store additional keyrings to be used with Signed-By.

Co-authored-by: Jarek Kowalski <jaak@jkowalski.net>
This commit is contained in:
Raúl SantosandJarek Kowalski authored and GitHub committed 2023-04-17 23:26:24 -07:00
1 parent f680dc53ed
commit 58d9e94d00
1 file changed
+2 -2
+2 -2
View File
@@ -124,13 +124,13 @@ Kopia offers APT repository compatible with Debian, Ubuntu and other similar dis
To begin, install the GPG signing key to verify authenticity of the releases.
```shell
curl -s https://kopia.io/signing-key | sudo gpg --dearmor -o /usr/share/keyrings/kopia-keyring.gpg
curl -s https://kopia.io/signing-key | sudo gpg --dearmor -o /etc/apt/keyrings/kopia-keyring.gpg
```
Register APT source:
```shell
echo "deb [signed-by=/usr/share/keyrings/kopia-keyring.gpg] http://packages.kopia.io/apt/ stable main" | sudo tee /etc/apt/sources.list.d/kopia.list
echo "deb [signed-by=/etc/apt/keyrings/kopia-keyring.gpg] http://packages.kopia.io/apt/ stable main" | sudo tee /etc/apt/sources.list.d/kopia.list
sudo apt update
```