Mongo Install fails for community edition on Ubuntu

Out of tricks now. Installation fails due to untrusted link/cert.

:~$ curl -fsSL {pgp.link}/server-7.0.asc | \

sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \

–dearmor

curl: (60) SSL certificate problem: unable to get local issuer certificate

curl failed to verify the legitimacy of the server and therefore could not

establish a secure connection to it. To learn more about this situation and

how to fix it, please visit the web page mentioned above.

File ‘/usr/share/keyrings/mongodb-server-7.0.gpg’ exists. Overwrite? (y/N) Y

gpg: no valid OpenPGP data found.

echo “deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] {repo}/apt/ubuntu jammy/mongodb-org/7.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] {repo}/apt/ubuntu jammy/mongodb-org/7.0 multiverse

:~$ sudo apt-get update

Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: ::ffff:146.112.61.104 443]
Reading package lists… Done
W: Failed to fetch https://repo.mongodb.org/apt/ubuntu/dists/jammy/mongodb-org/7.0/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: ::ffff:146.112.61.104 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.

openpgp f

Hi @Dev_Engine, I see you’re using {pgp.link}/server-7.0.asc, the official instructions state to use https://pgp.mongodb.com/server-7.0.asc. Can you confirm you’re entering as the documentation suggests?

If you’re pasting it in as such {pgp.link} into bash, it’s likely being evaluated to pgp[.]link, which appears to be a suspicious website that has an invalid SSL certificate, and the MongoDB PGP key information would NOT be there.