Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.33k stars 1.05k forks source link

Incorrect apt repository in the Ubuntu Installation docs #16380

Closed yuuki0xff closed 12 months ago

yuuki0xff commented 1 year ago

What?

The MongoDB section in the Ubuntu Installation docs seems to be incorrect. I request to update docs.

I posted it here because I couldn't find a place to report documentation error. Please guide me if a better place exists.

Why?

The MongoDB section in the Ubuntu Installation docs instructed me to add MongoDB's apt repository for Debian Bullseye. It causes installation failure due to dependency problems.

Compared with Graylog's docs and MongoDB's docs, some differences exist. I think that Granlog docs should be updated to the official installation procedure of MongoDB.

# From Graylog documentation:
# Suite name is bullseye/mongodb-org/6.0. It is not suitable for the Ubuntu 22.04.
# https://go2docs.graylog.org/5-1/downloading_and_installing_graylog/ubuntu_installation.html
sudo wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo gpg --dearmor --batch --yes -o /usr/share/keyrings/mongodb-keyring
echo "deb [signed-by=/usr/share/keyrings/mongodb-keyring] http://repo.mongodb.org/apt/debian bullseye/mongodb-org/6.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list

# From MongoDB documentation:
# Suite name is jammy/mongodb-org/6.0. It correct.
# https://www.mongodb.com/docs/v6.0/tutorial/install-mongodb-on-ubuntu/
curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \
   sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \
   --dearmor
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list

Your Environment

etgraylog commented 1 year ago

I just submitted an Asana request to Docs-team w/the correct instructions (scraped from https://www.mongodb.com/docs/v6.0/tutorial/install-mongodb-on-ubuntu/).

yuuki0xff commented 12 months ago

It seems to be fixed. Thanks.