武藤@Debianぷろじぇくとです。
At Fri, 19 Oct 2018 07:36:12 +0900, Yasuhiko =?ISO-2022-JP?B?S2F3YW5vKBskQkBuTG4wQkknGyhCKQ==?= wrote:
~$ sudo apt update -y 無視:1 http://ftp.jp.debian.org/debian stretch InRelease 取得:3 http://ftp.jp.debian.org/debian stretch Release [118 kB] 取得:2 http://ftp.jp.debian.org/debian stretch-updates InRelease [91.0 kB] 取得:4 http://ftp.jp.debian.org/debian stretch Release.gpg [2,434 B] エラー:2 http://ftp.jp.debian.org/debian stretch-updates InRelease 公開鍵を利用できないため、以下の署名は検証できませんでした: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
apt-keyの設定が何かおかしくなっているように見えます。 手元のdebootstrapした新規環境だと
$ ls -l /etc/apt/trusted.gpg.d/ 合計 48 -rw-r--r-- 1 root root 5138 5月 25 2017 debian-archive-jessie-automatic.gpg -rw-r--r-- 1 root root 5147 5月 25 2017 debian-archive-jessie-security-automatic.gpg -rw-r--r-- 1 root root 2775 5月 25 2017 debian-archive-jessie-stable.gpg -rw-r--r-- 1 root root 7483 5月 25 2017 debian-archive-stretch-automatic.gpg -rw-r--r-- 1 root root 7492 5月 25 2017 debian-archive-stretch-security-automatic.gpg -rw-r--r-- 1 root root 2275 5月 25 2017 debian-archive-stretch-stable.gpg -rw-r--r-- 1 root root 3780 5月 25 2017 debian-archive-wheezy-automatic.gpg -rw-r--r-- 1 root root 2851 5月 25 2017 debian-archive-wheezy-stable.gpg
$ ls -l /etc/apt/trusted.gpg ls: '/etc/apt/trusted.gpg' にアクセスできません: そのようなファイルやディレクトリはありません $ apt-key list /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg ---------------------------------------------------------- pub rsa4096 2014-11-21 [SC] [expires: 2022-11-19] 126C 0D24 BD8A 2942 CC7D F8AC 7638 D044 2B90 D010 uid [ unknown] Debian Archive Automatic Signing Key (8/jessie) ftpmaster@debian.org
/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg ------------------------------------------------------------------- pub rsa4096 2014-11-21 [SC] [expires: 2022-11-19] D211 6914 1CEC D440 F2EB 8DDA 9D6D 8F6B C857 C906 uid [ unknown] Debian Security Archive Automatic Signing Key (8/jessie) ftpmaster@debian.org
/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg ------------------------------------------------------- pub rsa4096 2013-08-17 [SC] [expires: 2021-08-15] 75DD C3C4 A499 F1A1 8CB5 F3C8 CBF8 D6FD 518E 17E1 uid [ unknown] Jessie Stable Release Key debian-release@lists.debian.org
/etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg ----------------------------------------------------------- pub rsa4096 2017-05-22 [SC] [expires: 2025-05-20] E1CF 20DD FFE4 B89E 8026 58F1 E0B1 1894 F66A EC98 uid [ unknown] Debian Archive Automatic Signing Key (9/stretch) ftpmaster@debian.org sub rsa4096 2017-05-22 [S] [expires: 2025-05-20]
/etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg -------------------------------------------------------------------- pub rsa4096 2017-05-22 [SC] [expires: 2025-05-20] 6ED6 F5CB 5FA6 FB2F 460A E88E EDA0 D238 8AE2 2BA9 uid [ unknown] Debian Security Archive Automatic Signing Key (9/stretch) ftpmaster@debian.org sub rsa4096 2017-05-22 [S] [expires: 2025-05-20]
/etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg -------------------------------------------------------- pub rsa4096 2017-05-20 [SC] [expires: 2025-05-18] 067E 3C45 6BAE 240A CEE8 8F6F EF0F 382A 1A7B 6500 uid [ unknown] Debian Stable Release Key (9/stretch) debian-release@lists.debian.org
/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg ---------------------------------------------------------- pub rsa4096 2012-04-27 [SC] [expires: 2020-04-25] A1BD 8E9D 78F7 FE5C 3E65 D8AF 8B48 AD62 4692 5553 uid [ unknown] Debian Archive Automatic Signing Key (7.0/wheezy) ftpmaster@debian.org
/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg ------------------------------------------------------- pub rsa4096 2012-05-08 [SC] [expires: 2019-05-07] ED6D 6527 1AAC F0FF 15D1 2303 6FB2 A1C2 65FF B764 uid [ unknown] Wheezy Stable Release Key debian-release@lists.debian.org
・インストール時は正常で、急に発生した? インストール直後からおかしい? ・/etc/apt/trusted.gpg.d に上記に挙げたファイルがない場合は何かおかしい。 ・/etc/apt/trusted.gpg が存在するならひとまずそれをリネームしてみる。