看来我的运气也不好!我正在尝试安装 mongo DB,但在更新 apt-get 存储库时遇到以下问题
Reading package lists... Done
E: The repository 'http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.0 Release' does not have a Release file.
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: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BC711F9BA15703C6
E: The repository 'http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 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.
W: GPG error: http://cz.archive.ubuntu.com/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
我怀疑 /etc/apt/sources.list.d 出了问题,有人能帮我解决这个问题并安装 mongo DB 吗?
非常感谢,Surya Kiran。
答案1
尝试以下代码来解决您的问题。这对我有用:
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update