老杨说话的地方
  • 首页
  • 关于老杨
  • 博客时间
  • 文章分类
    • 人生感悟
    • 信息技术
    • 往事随风
    • 情感随笔
    • 文学创作
    • 生活记录
    • 评论杂谈
    • 人工智能
  • 留言本
我是老杨
张驰有度 宠辱不惊
  1. 首页
  2. 信息技术
  3. 正文

更新Gitlab时遇到错误The following signatures were invalid

2022年05月14日 4854点热度 0人点赞 4条评论

之前设置了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

就可以了。

标签: gitlab 技术 更新 服务器
最后更新:2022年06月19日

老杨

博士,非博学之士;讲师,讲所学所知。糊涂半生,虚度半世,唯愿平淡快乐,度过此生。

点赞
guest

guest

4 评论
xqiushi
xqiushi
游客
2022年6月29日 上午9:03

这个网站不稳了

0
回复
老杨
老杨
作者
回复给  xqiushi
2022年6月29日 上午9:12

@xqiushi 哪个网站?

0
回复
xqiushi
xqiushi
游客
回复给  老杨
2022年6月29日 上午10:01

@老杨 我以为这个是存在gaybub上的呢。

0
回复
老杨
老杨
作者
回复给  xqiushi
2022年6月29日 上午10:07

@xqiushi 不是,这个是我用Gitlab这个软件,自己搭建的git服务器。

0
回复

老杨

博士,非博学之士;讲师,讲所学所知。糊涂半生,虚度半世,唯愿平淡快乐,度过此生。

搜索
最新 热点 随机
最新 热点 随机
别成为AI的奴隶 给阿嬷的情书 信息焦虑综合症 PUA 人的悲喜并不相通 RIME输入法万象拼音输入方案更改自定义短语文件的方法 禁用RIME输入法万象拼音输入方案表情的办法 幸福者避让原则 WordPress插件WP-Editor.md代码语法无法高亮问题的解决方案 RIME的自动化配置与同步
使用Windows7自带Windows Media Center播放RMVB影片 谁说你成功 他们到底在干吗 忍辱负重 理想空间新推100M免费空间 微软故意让盗版盛行? 一个崭新的博士诞生了 这几天的事儿 微软令人赞叹的举动 初为人师
最新评论
  • 信息焦虑综合症上的shanshan先从减少手机使用时间开始。
  • 第二青春计划失败上的shanshan所以必须得自己下定决心痛改前非,而不是跟自己讲条件。
  • 第二青春计划失败上的老杨这种平台挺多的,但是应该没啥用,能有啥情绪价值比躺着刷手机更好呢?
  • 春秋航空让人长见识上的老杨已经遇到了,额外支付了170,托运登机行李,还不是托运行李。
  • PUA上的老杨那很好,恭喜你
  • 信息焦虑综合症上的老杨可以尝试改变。
  • 别成为AI的奴隶上的老杨现在很多人离开AI已经不知道怎么工作了。
  • 第二青春计划失败上的shanshan建议开发一个适合P人的工作生活计划平台,完不成没什么惩罚、但是完成了有…
  • 春秋航空让人长见识上的shanshan还有部分机型里20寸箱子应该上不了机,且没有免费行李托运额度。托运费超…
  • 人的悲喜并不相通上的shanshan这个世界精致利己主义者太多啦!
文章分类
关注公众号

COPYRIGHT © 2026 老杨说话的地方 版权所有

THEME KRATOS YANG Modified BY 老杨

鲁ICP备17014997号-4

鲁公网安备 37021302000754号