当我尝试使用https://docs.mongodb.com/getting-started/shell/tutorial/install-mongodb-on-ubuntu/16.04上的说明安装 mongodb 时,我在安装步骤中得到以下结果:
jonathan@poseidon:~$ sudo apt-get install mongodb-org
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mongodb-org is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mongodb-org' has no installation candidate
Run Code Online (Sandbox Code Playgroud)
我使用 Wireshark 检查了 HTTP 流量,发现唯一的流量是列表的 HTTP GET 和 HTTP 304 响应,这表明问题出在我的本地配置文件中。我的 sources.list.d 文件包含以下条目:
mongodb-org-3.4.list
Run Code Online (Sandbox Code Playgroud)
我需要做什么才能继续解决此问题?
编辑:我尝试在 VirtualBox 下的 16.04 新安装上再次执行此操作。我检索了密钥,创建了列表文件,并sudo apt …