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

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

2022年05月14日 3477点热度 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
回复

老杨

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

搜索
最新 热点 随机
最新 热点 随机
中国是不是体育强国? 成功的必备因素 关于华为 别再侮辱我的智商 春秋航空让人长见识 第二青春计划失败 第二青春计划 模型训练错误RuntimeError: expected scalar type Half but found Float 加载onnx模型进行推理 PyTorch模型转onnx格式
我在大学那几年(十二) 懒 那不是爱 今天过生日? 《流浪地球》细节与感悟 重新审视体育精神 整理C#笔记 挣扎雅思 你总是有理由 Semor.Yang
最新评论
  • 关于华为上的老杨确实,苹果手机系统还是有优势的。
  • 关于华为上的乱云AKAY自从换了苹果手机后,对手机再没以前那样热爱研究了,主要是系统省心。
  • 第二青春计划失败上的老杨第二都失败了,第三就算了吧。
  • 春秋航空让人长见识上的老杨应该提供一点水,至少给不想买水的人一个选择的空间。
  • 别再侮辱我的智商上的老杨那个很好,很值得。
  • 关于华为上的老杨Next系统基本没广告。大部分广告都可以关掉吧,我记得我写过一个文章,…
  • 第二青春计划失败上的xqiushi开始第三青春计划吧。
  • 春秋航空让人长见识上的xqiushi那个桌板能放下小米多看电子书,还是不错的。 这个矿泉水市面上没有,特供…
  • 别再侮辱我的智商上的xqiushi只投了那100亿的项目。
  • 关于华为上的xqiushi今年我爸的手机也换成华为,家庭里手机基本都是华为。最不满意的一点就是广…

Google java jsp linux QQ wordpress 中国 习惯 人生 公司 决定 博士 博客 同学 国家 大学 学习 实验室 家 小说 工作 开始 思考 情感 手机 技术 推荐 插件 数据库 文件 晴迷星途 朋友 生活 电影 相声 程序 笔记 网站 网络 置顶 美国 评论 软件 音乐 项目

关注公众号

COPYRIGHT © 2020 老杨说话的地方. ALL RIGHTS RESERVED.

THEME KRATOS YANG Modified BY 老杨

鲁ICP备17014997号-4

鲁公网安备 37021302000754号