We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8c8fb7 commit 0787518Copy full SHA for 0787518
gitlab-ce/deb.zh.md
@@ -3,13 +3,13 @@
3
首先信任 GitLab 的 GPG 公钥:
4
5
<tmpl z-lang="bash">
6
-curl https://packages.gitlab.com/gpg.key 2> /dev/null | {{sudo}}apt-key add - &>/dev/null
+curl -fsSL https://packages.gitlab.com/gpg.key | {{sudo}}gpg --dearmor > /usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg
7
</tmpl>
8
9
再选择你的 Debian/Ubuntu 版本,将下方内容写入 `/etc/apt/sources.list.d/gitlab-ce.list`
10
11
<tmpl z-input="release" z-path="/etc/apt/sources.list.d/gitlab-ce.list">
12
-deb {{endpoint}}/{{os}} {{release}} main
+deb [signed-by=/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg] {{endpoint}}/{{os}} {{release}} main
13
14
15
安装 gitlab-ce:
0 commit comments