Debian Linux 遇到 NO_PUBKEY GPG error 的解法可見此篇:Linux APT 遇到 NO_PUBKEY 的 GPG error 解法
若已經新增卻還是遇到簽名無效的錯誤,可以怎麼做呢?
Linux APT Signing EXPKEYSIG 簽名無效 修正
於 apt update 遇到下述錯誤
- 錯誤:10 http://dl.google.com/linux/mod-pagespeed/deb stable Release.gpg
- 以下簽名無效: EXPKEYSIG 78BD65473CB3BD13 Google Inc. (Linux Packages Signing Authority) <[email protected]>
- W: GPG error: http://dl.google.com/linux/mod-pagespeed/deb stable Release: 以下簽名無效: EXPKEYSIG 78BD65473CB3BD13 Google Inc. (Linux Packages Signing Authority) <linux-packages-key [email protected]>
使用下述新增方式:
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 78BD65473CB3BD13 # 或
- wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
再來做 apt update 都一樣情況,於是在嘗試更新所有 keys
- wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key adv --refresh-keys -
- sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
若還是不行,就暫時採用相信策略吧~
- vim /etc/apt/sources.list.d/mod-pagespeed.list # 將
- 將 deb http://dl.google.com/linux/mod-pagespeed/deb/ stable main 增加 [trusted=yes]
- 改成 deb [trusted=yes] http://dl.google.com/linux/mod-pagespeed/deb/ stable main
- 若有其它指定,可以寫 [arch=amd64, trusted=yes] 等等
查看 Keys List
- ls /var/lib/apt/lists
- sudo apt-key list