擅长:python、mysql、java
<p>首先从ubuntu软件中心更改服务器,然后执行步骤</p>
<p>1-在ubuntu软件中心搜索软件和更新</p>
<p>2-选择<code>Download from</code>选择<code>Other</code>然后右侧选择<code>Select best server</code>如果完成则需要一些时间
<a href="https://i.stack.imgur.com/9l85Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9l85Q.png" alt="enter image description here"/></a></p>
<p>尝试从此命令重新安装mongodb</p>
<p><strong>步骤1</strong></p>
<pre><code>sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
</code></pre>
<p><strong>步骤2</strong></p>
<pre><code>sudo apt-get update
</code></pre>
<p><strong>步骤3</strong></p>
<pre><code>sudo apt-get install -y mongodb-org
</code></pre>