在Ubuntu下使用apt更新gitlab报错如下:

An error occurred during the signature verification.The repository is not updated and the previous index files will be used.GPG error: ...
Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu/dists/focal/InRelese ...
编辑如下代码并运行:
awk '/deb \[signed-by=/{
pubkey = $2;
sub(/\[signed-by=/, "", pubkey);
sub(/\]$/, "", pubkey);
print pubkey
}' /etc/apt/sources.list.d/gitlab_gitlab-?e.list | \
while read line; do
curl -s "https://packages.gitlab.com/gpg.key" | gpg --dearmor > $line
done
运行成功后,再执行apt upgrade升级gitlab,恢复正常。
文章讲述了用户在Ubuntu系统上遇到GitLabEE包更新时的GPG签名验证错误,通过编辑sources.list.d中的文件添加GitLabGPG密钥并解密后,解决了问题并成功完成aptupgrade。
&spm=1001.2101.3001.5002&articleId=137046664&d=1&t=3&u=d55ca1952fa44c32ab880b31a7622ded)
1780

被折叠的 条评论
为什么被折叠?



