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.
how i can solve this
CodePudding user response:
Clean the current faulty mongo repo:
rm -rf /etc/apt/sources.list.d/mongodb-org-4.2.list
Update :
apt update
Follow the official instructions here:
https://www.mongodb.com/docs/v4.2/tutorial/install-mongodb-on-ubuntu/