Upgrading a standalone installation to Mongo 7.0.2 on Ubuntu 22.04 results in Version '7.0.2' for 'mongodb-mongosh' was not found error

I’m following the instructions found here to upgrade to Mongo Community edition from 6.0 → 7.0.

When running:
sudo apt-get install -y mongodb-org=7.0.2 mongodb-org-database=7.0.2 mongodb-org-server=7.0.2 mongodb-mongosh=7.0.2 mongodb-org-mongos=7.0.2 mongodb-org-tools=7.0.2

from the instructions I get the error:

E: Version '7.0.2' for 'mongodb-mongosh' was not found

I looked at the package it’s pulling from: https://repo.mongodb.org/apt/ubuntu/dists/jammy/mongodb-org/7.0/multiverse/binary-amd64/

and I agree, I don’t see mongodb-mongosh_7.0.2 in there. I’m trying to understand what the correct command is to install this.

1 Like

Download the mongosh externally

Download and install form this link

I guess the documentation needs to be updated. Changing mongodb-mongosh=7.0.2 to mongodb-mongosh=2.0.1 seems to work.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.