Type 'echo' is not known on line 1 in source list /etc/apt/sources.list.d/mongodb-org-3.2.list [duplicate]
Solution 1:
You are nearly there.
In order to install MongoDB and keep up with updates, you need to create a file in /etc/apt/sources.list.d
(you did that) and add a single line to it. To make adding that line easier for you, the authors of the installation instructions provided a one-line command that would do that. You should have copied that command and executed it in a terminal. What you did instead was editing the file and pasting the whole command in it. The apt
command will obviously not accept that. What you need to do is either:
- delete the file, recreate the empty file, and execute the command (with
sudo
in front of it, I should mention); or - edit the file, strip away everything around
deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse
, and save the file.