Skip to content

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

Description

@szmazhr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions