Menu

메모용 개발 블로그

전체보기 > OS > Linux >

apt update signatures were invalid 에러

2022-07-27 00:07:30

발단

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