Install documentation for Ubuntu 20.04 (that works?)
-
hey @julian
It's the first line, error ...root@nodebb:~# wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -sc)/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list apt-get update apt-get install -y mongodb-org nodejs -y tee: invalid option -- 'y' Try 'tee --help' for more information. /bin/echo: /bin/echo: cannot execute binary file Warning: apt-key output should not be parsed (stdout is not a terminal) gpg: can't open 'curl': No such file or directory gpg: can't open '-sL': No such file or directory gpg: can't open 'https://deb.nodesource.com/setup_lts.x': No such file or directory
-
breaking the one-liner into logical parts like the one below allows me to move past the first stage
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - curl -sL https://deb.nodesource.com/setup_lts.x \ | bash - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -sc)/mongodb-org/4.4 multiverse" \ | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list apt-get update apt-get install -y mongodb-org nodejs -y
-
We link directly to the official MongoDB docs for a reason. If our abbreviation isn't working or is it of date, go there.
In fact our guide literally says:
The following is an abbreviation of the official MongoDB installation guide for Ubuntu. If you're having issues, fall back to using that guide instead.
-
Oh are you using the one from the blog? Try our docs here instead:
Copyright © 2024 NodeBB | Contributors