web-dev-qa-db-ja.com

14.04から16.04への更新がGPGエラーで失敗しました

アップグレード後にapt-get update-次のメッセージが表示されます

W: GPG error: http://archive.canonical.com/ubuntu xenial InRelease: At least one invalid signature was encountered.
W: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed.
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: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial InRelease: At least one invalid signature was encountered.
W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
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: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-security InRelease: At least one invalid signature was encountered.
W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-security InRelease' is not signed.
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: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-updates InRelease: At least one invalid signature was encountered.
W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed.
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: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-proposed InRelease: At least one invalid signature was encountered.
W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-proposed InRelease' is not signed.
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: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-backports InRelease: At least one invalid signature was encountered.
W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed.
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.

試した

Sudo apt-get clean
Sudo mv /var/lib/apt/lists /tmp
Sudo mkdir -p /var/lib/apt/lists/partial
Sudo apt-get clean
Sudo apt-get update

助けにはなりませんでした。

私の現在のsource.list:

###### Ubuntu Main Repos
deb http://ua.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://ua.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
deb http://ua.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 
deb http://ua.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse 
deb http://ua.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
6
Davinel

rm -rf /etc/apt/trusted.gpg.d/*で修正

どうやら、いくつかの古いリポジトリのgpgは、それらのリポジトリが無効になっているにも関わらず、混乱していました。

6
Davinel