title: MongoDB installation on aws ec2 server
body: <p>I am trying to install mongoDB on ec2 ubuntu server and following this link 
  <a href="https://optimalbi.com/blog/2017/09/14/how-to-install-mongodb-with-aws-ec2/" rel="nofollow noreferrer">https://optimalbi.com/blog/2017/09/14/how-to-install-mongodb-with-aws-ec2/</a>
  but it gives me this error</p>
  
  <pre><code>root@ip-172-31-9-20:~# sudo apt update
  E: Malformed entry 1 in list file /etc/apt/sources.list.d/mongodb-org-3.4.list (Component)
  E: The list of sources could not be read.
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>sudo sed -i -e '1d' /etc/apt/sources.list.d/mongodb-org-3.4.list
  </code></pre>
  
  <p>But then it gave the following error - </p>
  
  <pre><code>E: Type '“deb' is not known on line 1 in source list /etc/apt/sources.list.d/mongodb-org-3.6.list
  E: The list of sources could not be read.
  </code></pre>
  
  <p>Any help would be appreciated.</p>