I am trying to install MongoDB by following the official documentation. I am using Ubuntu 22.04.2 LTS.
According to the documentation, the following command is supposed to return OK
but I'm getting the following when I run curl -fsSL https://pgp.mongodb.com/server-6.0.pub | sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg
:
gpg: WARNING: no command supplied. Trying to guess what you mean ...
pub rsa4096 2022-02-23 [SC] [expires: 2027-02-22]
39BD841E4BE5FB195A65400E6A26B1AE64C3C388
uid MongoDB 6.0 Release Signing Key <[email protected]>
I have read the official troublshooting guide but I couldn't find anything related to my issue.
stupid rules
andgatekeepers
here, I have to post this answer in the comments :) Try this my brother:curl -fsSL https://pgp.mongodb.com/server-6.0.pub | sudo gpg --dearmour -o /usr/share/keyrings/mongodb-server-6.0.gpg
– Paddle