GitLab更新失败(Ubuntu)

在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,恢复正常。

相关推荐

  1. Ubuntu 上安装 GitLab

    2024-03-29 21:04:02       44 阅读
  2. 关于ubuntu18.04 ARM架构更换失败的问题

    2024-03-29 21:04:02       43 阅读
  3. Ubuntu服务器的GitLab部署

    2024-03-29 21:04:02       34 阅读
  4. Ubuntu 的cuda更新

    2024-03-29 21:04:02       38 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-29 21:04:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-29 21:04:02       101 阅读
  3. 在Django里面运行非项目文件

    2024-03-29 21:04:02       82 阅读
  4. Python语言-面向对象

    2024-03-29 21:04:02       91 阅读

热门阅读

  1. go中方法的Receiver (值类型&指针类型)

    2024-03-29 21:04:02       46 阅读
  2. 【JVM】双亲委派机制

    2024-03-29 21:04:02       40 阅读
  3. ConvE算法模型

    2024-03-29 21:04:02       33 阅读
  4. 跨时钟域学习记录(二)——XPM_CDC

    2024-03-29 21:04:02       31 阅读
  5. Tiktok 商务中心后台账户学习

    2024-03-29 21:04:02       39 阅读