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

pls update mongodb repo on bbb-install.sh #765

Open
Der-Sysop opened this issue Dec 4, 2024 · 0 comments
Open

pls update mongodb repo on bbb-install.sh #765

Der-Sysop opened this issue Dec 4, 2024 · 0 comments

Comments

@Der-Sysop
Copy link

bbb-install.sh script causes apt update erros for mongodb because debian/ubunut repos now require signed= by inside the repo file

the current install script uploads a mongodb repo which causes apt update errors:
W: GPG error: https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 656408E390CFB1F5
E: The repository 'https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease' is no longer signed.

the repo should look like

/etc/apt/sources.list.d/mongodb-org-4.4.list

deb [ arch=amd64 signed-by=/etc/apt/trusted.gpg.d/mongodb.asc ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse

maybe update the bbb-install.sh script

bbb-install.sh :314

from:
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
to:
wget -O /etc/apt/trusted.gpg.d/mongodb.asc https://pgp.mongodb.com/server-4.4.asc && echo "deb [ arch=amd64 signed-by=/etc/apt/trusted.gpg.d/mongodb.asc ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

and maybe changing this somehow too

bbb-install.sh :311 to 313

if ! apt-key list MongoDB | grep -q 4.4; then
  wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
fi
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

1 participant