upgrade mongodb 3.6 to 4.0 code example Example: update mongodb version to 4 ubuntu mongodb-org is already the newest version (4.0.10).