web-dev-qa-db-ja.com

sudo apt-get updateがリポジトリに接続しない-GPG署名が無効です/リポジトリにリリースファイルがありません

apt-get updateを実行するたびに、これが吐き出されます。そして、apt-get installまたはbuntu Software Centerからダウンロードしようとすると、動作しません。助けてください。ありがとう。

    Reading package lists... Done
W: GPG error: http://us.archive.ubuntu.com/ubuntu yakkety-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
E: The repository 'http://us.archive.ubuntu.com/ubuntu yakkety-updates Release' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/gwendal-lebihan-dev/hexchat-stable/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/ubuntuhandbook1/audacity/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
2
Jeff

BADSIGエラーの場合

署名が間違っている可能性があります。これを修正するには、ターミナルを開いて次のように入力します。

Sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5

40976EAF437D05B5が不正な署名キーである場合、このコマンドを使用して、最後のキーを置き換えるだけで対応するエラーを解決します。

次に、同様の問題が再び発生するのを避けるために、aptソフトウェアキャッシュをクリアすることができます。

cd /var/lib/apt
Sudo mv lists lists.old
Sudo mkdir -p lists/partial
Sudo apt update

does not have release fileエラーの場合

このエラーは、次のような互換性のないリポジトリがあることを意味します。

  1. Deadsnakes (廃止)
  2. HexChat安定
  3. Audacity

これらのリポジトリを削除するだけでエラーが解消され、--removeadd-apt-repository引数を使用できます。

Sudo add-apt-repository --remove ppa:ubuntuhandbook1/audacity
Sudo add-apt-repository --remove ppa:fkrull/deadsnakes-python2.7
Sudo add-apt-repository --remove ppa:gwendal-lebihan-dev/hexchat-stable
3
Jim

私は専門家ではありませんが、GPGキャッシュが破損しているようです。走ってみて

    Sudo apt-key update

これにより、Ubuntuリポジトリのキーが復元されます。サードパーティのリポジトリ、私は修正方法がわかりません。汚い解決策は実行することだと思います

    Sudo apt-get update --allow-unauthenticated

私はこれに対して本当に助言します。更新を実行する際に持っているセキュリティを窓から投げ出します。

0
Adam Ramsey