之前设置了Gitlab的自动更新定时任务,这一段时间发现没有成功执行。今天登陆到服务器看了一下,发现更新的时候报错了:
Err:36 https://packages.gitlab.com/gitlab/gitlab-ce/debian buster InRelease The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <packages@gitlab.com> Get:37 https://packages.gitlab.com/gitlab/gitlab-ee/debian buster InRelease [23.4 kB] Err:37 https://packages.gitlab.com/gitlab/gitlab-ee/debian buster InRelease The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <packages@gitlab.com> Reading package lists... Done W: GPG error: https://packages.gitlab.com/gitlab/gitlab-ce/debian buster InRelease: The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <packages@gitlab.com> E: The repository 'https://packages.gitlab.com/gitlab/gitlab-ce/debian buster InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: https://packages.gitlab.com/gitlab/gitlab-ee/debian buster InRelease: The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <packages@gitlab.com> E: The repository 'https://packages.gitlab.com/gitlab/gitlab-ee/debian buster InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
原因是因为,gitlab的key过期了,解决方法:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3F01618A51312F3F
其中,最后面跟着的字符串,就是key的ID。
然后再执行:
sudo apt update && sudo apt install gitlab-ce
就可以了。
这个网站不稳了
@xqiushi 哪个网站?
@老杨 我以为这个是存在gaybub上的呢。
@xqiushi 不是,这个是我用Gitlab这个软件,自己搭建的git服务器。