2011年9月12日月曜日

Ubuntu 11.04 apt-get update時にエラー

10.04をアップグレードしたら、なぜかapt-get updateがエラーになった

#エラーメッセージ
W: GPG error: http://extras.ubuntu.com natty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192

対応方法 参考
以下をコマンドで実行
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3E5C1192


【参考】公式サイトGPG鍵とレポジトリを追加では解決しなかった。

  • Ubuntu 11.04の場合:
    wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add -
    wget -q https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -O- | sudo apt-key add -
    sudo wget https://www.ubuntulinux.jp/sources.list.d/natty.list -O /etc/apt/sources.list.d/ubuntu-ja.list
    sudo apt-get update