You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
switch destination directory for apt signing keys (#28639)
According to [Debian
docs](https://wiki.debian.org/DebianRepository/UseThirdParty):
> The certificate MUST NOT be placed in /etc/apt/trusted.gpg.d or loaded
by apt-key add.
> ...
> If future updates to the certificate will be managed by an apt/dpkg
package as recommended below, then it SHOULD be downloaded into
/usr/share/keyrings using the same filename that will be provided by the
package. If it will be managed locally , it SHOULD be downloaded into
/etc/apt/keyrings instead.
> ...
> A sources.list entry SHOULD have the signed-by option set.
Copy file name to clipboardExpand all lines: docs/content/usage/packages/debian.en-us.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ The following examples use `apt`.
27
27
To register the Debian registry add the url to the list of known apt sources:
28
28
29
29
```shell
30
-
echo"deb https://gitea.example.com/api/packages/{owner}/debian {distribution} {component}"| sudo tee -a /etc/apt/sources.list.d/gitea.list
30
+
echo"deb [signed-by=/etc/apt/keyrings/gitea-{owner}.asc] https://gitea.example.com/api/packages/{owner}/debian {distribution} {component}"| sudo tee -a /etc/apt/sources.list.d/gitea.list
If the registry is private, provide credentials in the url. You can use a password or a [personal access token](development/api-usage.md#authentication):
40
40
41
41
```shell
42
-
echo"deb https://{username}:{your_password_or_token}@gitea.example.com/api/packages/{owner}/debian {distribution} {component}"| sudo tee -a /etc/apt/sources.list.d/gitea.list
42
+
echo"deb [signed-by=/etc/apt/keyrings/gitea-{owner}.asc] https://{username}:{your_password_or_token}@gitea.example.com/api/packages/{owner}/debian {distribution} {component}"| sudo tee -a /etc/apt/sources.list.d/gitea.list
43
43
```
44
44
45
45
The Debian registry files are signed with a PGP key which must be known to apt:
Copy file name to clipboardExpand all lines: docs/content/usage/packages/debian.zh-cn.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ menu:
27
27
要注册 Debian 注册表,请将 URL 添加到已知 `apt` 源列表中:
28
28
29
29
```shell
30
-
echo"deb https://gitea.example.com/api/packages/{owner}/debian {distribution} {component}"| sudo tee -a /etc/apt/sources.list.d/gitea.list
30
+
echo"deb [signed-by=/etc/apt/keyrings/gitea-{owner}.asc] https://gitea.example.com/api/packages/{owner}/debian {distribution} {component}"| sudo tee -a /etc/apt/sources.list.d/gitea.list
echo"deb https://{username}:{your_password_or_token}@gitea.example.com/api/packages/{owner}/debian {distribution} {component}"| sudo tee -a /etc/apt/sources.list.d/gitea.list
42
+
echo"deb [signed-by=/etc/apt/keyrings/gitea-{owner}.asc] https://{username}:{your_password_or_token}@gitea.example.com/api/packages/{owner}/debian {distribution} {component}"| sudo tee -a /etc/apt/sources.list.d/gitea.list
0 commit comments