我尝试在 linux 上 运行 命令 "sudo apt update" 并显示错误
i try to run the command "sudo apt update" on my linux and it showing the error
E: Type 'mongodb-org/4.2' is not known on line 2 in source list /etc/apt/sources.list.d/mongodb-org-4.2.list
E: Malformed line 1 in source list /etc/apt/sources.list.d/some-ppa.list (type)
E: The list of sources could not be read.
我该如何解决这个问题
清理当前有问题的mongo repo:
rm -rf /etc/apt/sources.list.d/mongodb-org-4.2.list
更新:
apt 更新
按照官方说明操作:
https://www.mongodb.com/docs/v4.2/tutorial/install-mongodb-on-ubuntu/
E: Type 'mongodb-org/4.2' is not known on line 2 in source list /etc/apt/sources.list.d/mongodb-org-4.2.list
E: Malformed line 1 in source list /etc/apt/sources.list.d/some-ppa.list (type)
E: The list of sources could not be read.
我该如何解决这个问题
清理当前有问题的mongo repo:
rm -rf /etc/apt/sources.list.d/mongodb-org-4.2.list
更新:
apt 更新
按照官方说明操作:
https://www.mongodb.com/docs/v4.2/tutorial/install-mongodb-on-ubuntu/