Ubuntu - Process for Upgrading MongoDB 6.0 Standalone to MongoDB 7.0 Standalone
The process for Ubuntu is very similar to the process for Debian, please read:
and substitute the exact commands for Ubuntu from
https://www.mongodb.com/docs/v7.0/tutorial/install-mongodb-on-ubuntu/ and
https://www.mongodb.com/docs/manual/release-notes/7.0-upgrade-standalone/