메모용 개발 블로그
  • Home

Categories

  • All Posts116
  • OS35
    • Linux23
    • MacOS8
    • Windows4
  • 데이터베이스3
    • Oracle1
    • Postgresql1
  • Develop26
    • CSS33
    • Go8
    • HTML52
    • Java1
    • JavaScript4
    • React2
    • Svelte2
  • 개발일기10
  • Docker1
  • Git3
  • GitLab12
  • Nginx7
  • 기타16
  • 이 블로그의 오픈소스3
Linux•2022년 7월 26일

apt update signatures were invalid 에러

Table of Contents

  • apt update signatures were invalid 에러
  • 발단
  • 원인
  • 해결

발단

gitlab 업데이트를 하기 위해서 apt update 수행 중 일부 실패 로그가 발생함.

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG (키) GitLab B.V. (package repository signing key) <packages@gitlab.com>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.gitlab.com/runner/gitlab-runner/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG (키) GitLab B.V. (package repository signing key) <packages@gitlab.com>
W: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/bionic/InRelease  The following signatures were invalid: EXPKEYSIG (키) GitLab B.V. (package repository signing key) <packages@gitlab.com>
W: Failed to fetch https://packages.gitlab.com/runner/gitlab-runner/ubuntu/dists/bionic/InRelease  The following signatures were invalid: EXPKEYSIG (키) GitLab B.V. (package repository signing key) <packages@gitlab.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.

원인

패키지 저장소 인증키가 만료됨

해결

curl -s https://packages.gitlab.com/gpg.key | sudo apt-key add -

위 명령어 실행 시

➜  ~ curl -s https://packages.gitlab.com/gpg.key | sudo apt-key add -

OK
← Back to all posts