Возникают проблемы с обновлением репозиториев после установки докера

После установки докера, когда я пытаюсь использовать команду sudo apt update , я получаю следующую ошибку:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://download.docker.com/linux/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C34573JCD8
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/focal/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C34573JCD8
W: Some index files failed to download. They have been ignored, or old ones used instead.
0
задан 20 June 2020 в 20:20

2 ответа

It looks like that you haven't added official gpg key of docker repository. Open terminal and execute below command.

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
0
ответ дан 30 July 2020 в 22:25

I edited :

/etc/apt/sources.list

using the vim editor : sudo vim /etc/apt/sources.list And I put a # character at the beginning of the line that included the docker link.

# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu focal stable
0
ответ дан 30 July 2020 в 22:25

Другие вопросы по тегам:

Похожие вопросы: