Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to install mongodb shell on linux pop-os 22.04 LTS #235

Open
szmazhr opened this issue Aug 27, 2022 · 1 comment
Open

unable to install mongodb shell on linux pop-os 22.04 LTS #235

szmazhr opened this issue Aug 27, 2022 · 1 comment

Comments

@szmazhr
Copy link

szmazhr commented Aug 27, 2022

I tried to install .deb package as mentioned on https://www.mongodb.com/docs/mongodb-shell/install/#std-label-mdb-shell-install
but on running
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -

it says

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

the I did
curl https://www.mongodb.org/static/pgp/server-6.0.asc
cat server-6.0.asc | gpg --dearmor > server-6.0.gpg
sudo mv server-6.0.gpg /usr/share/keyrings/
sudo echo "deb [signed-by=/usr/share/keyrings/server-6.0.gpg] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo apt-get update
and then finally
sudo apt-get install -y mongodb-mongosh
and everything working fine

@stumbaumr
Copy link

Using gpg instead of asc would also make it easier to use the repo in Dockerfiles:

  • no need to install wget and gpg
  • Just use ADD to get the file and put it in /etc/apt/trusted.gpg.d/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants