我正在尝试在ec2 ubuntu服务器上安装mongoDB并点击此链接 https://optimalbi.com/blog/2017/09/14/how-to-install-mongodb-with-aws-ec2/ 但这给了我这个错误
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.
我尝试了
sudo sed -i -e '1d' /etc/apt/sources.list.d/mongodb-org-3.4.list
但是随后出现了以下错误-
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.
任何帮助将不胜感激。
答案 0 :(得分:0)
如果您的ubuntu版本是18.04,则需要在此处输入其他语法。您需要删除以前的文件。
{{1}}
然后您可以{{1}}