- 第一步:信任 GitLab 的 GPG 公钥:
curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null
- 第二步:新建gitlab源:
sudo vi /etc/apt/sources.list.d/gitlab-ce.list
写入以下内容:
deb http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/debian buster main
按“ESC”再按“:”,输入“wq”保存并退出。
注意,一定要是“buster”版本的源,不然安装会报错:
“/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0′ not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29′ not found (required by /opt/gitlab/embedded/lib/libruby.so.2.7)
”
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-l
版权声明:本文为Gibsion_Lu原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。