Не удается правильно установить mongod из-за ошибки GPG на Ubuntu 20.04

Я пытаюсь установить mongodb на Ubuntu через cli. После запуска sudo apt-get update Я получаю это

Hit:1 http://ca.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease                              
Hit:3 http://dl.google.com/linux/chrome/deb stable InRelease                                  
Hit:4 http://ca.archive.ubuntu.com/ubuntu focal-updates InRelease   
Ign:5 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 InRelease
Hit:6 http://ca.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:7 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release [3,462 B]
Get:8 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release.gpg [801 B]
Ign:8 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release.gpg
Reading package lists... Done
W: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D68FA50FEA312927
E: The repository 'http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release' is not 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.

Как это исправить?

1
задан 7 June 2020 в 20:41

1 ответ

импорт открытого ключа с помощью

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D68FA50FEA312927
2
ответ дан 19 June 2020 в 21:29

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

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