upgrade mongo shell ubuntu code example
Example 1: update mongodb version ubuntu
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list
Example 2: update mongodb version to 4 ubuntu
mongodb-org is already the newest version (4.0.10).