I have created an instance in Alibaba Cloud Simple Application Server with Ubuntu 14.04 as system Image. I am trying to install MongoDB CE on the server by following the official documentation here
I am stuck at the following command
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
I have even tried the below command
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu "lsb_release -sc"/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
nothing works, I get the following message:
sudo: unable to resolve host iZrj9gu3lzfytle0g2yhtiZ deb
https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.6 multiverse
There are other repositories people used in other references. But I cannot use that. I would like to know why this didn't work even from the official documentation.
Any help is appreciated. Thanks!