rethinkdb / docs

RethinkDB documentation
http://rethinkdb.com/docs
Apache License 2.0
117 stars 167 forks source link

[Documentation] [Install] [Ubuntu 22.04] Command apt-key is deprecated and has warnings about that. #1319

Closed jmwielandt closed 2 years ago

jmwielandt commented 2 years ago

After a few tries, I manage to install RethinkDB in Ubuntu 22.04 LTS (wsl2 on windows 10).

This are the new commands:

# download public key
curl -fsSL https://download.rethinkdb.com/repository/raw/pubkey.gpg | sudo gpg --dearmor -o /usr/share/keyrings/rethinkdb-archive-keyrings.gpg

# add the repository
echo "deb [signed-by=/usr/share/keyrings/rethinkdb-archive-keyrings.gpg] https://download.rethinkdb.com/repository/ubuntu-$(lsb_release -cs) $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list

sudo apt update
sudo apt install rethinkdb

# check instalation
rethinkdb --version  # rethinkdb 2.4.2~0jammy (GCC 11.2.0)

This was strongly based on redis' documentation. Please, update your install documentation to this.

Greetings~

srh commented 2 years ago

Thank you for the report. When I run the current install instructions, I get deprecation warnings around apt-key and trusted.gpg but not for using apt-get.

My understanding is, apt-get is not deprecated and apt is not available on some super minimal installs such as minimal docker images. So I will update the documentation to add your instructions, only using apt-get.

jmwielandt commented 2 years ago

Thank you for the report. When I run the current install instructions, I get deprecation warnings around apt-key and trusted.gpg but not for using apt-get.

My understanding is, apt-get is not deprecated and apt is not available on some super minimal installs such as minimal docker images. So I will update the documentation to add your instructions, only using apt-get.

My bad, it was apt-key, not apt-get ^^u I edited the title.

srh commented 2 years ago

Note that I moved the issue to the rethinkdb/docs repo.

With #1320 and (sigh) #1321 the issue is fixed.

The website is updated with #1320's change already, it should have #1321 in a few minutes. Thank you!

dotnetCarpenter commented 1 year ago

@srh This is still an issue. https://github.com/rethinkdb/www/issues/339

Also I would do wget -qO- https://download.rethinkdb.com/repository/raw/pubkey.gpg | sudo tee /etc/apt/trusted.gpg.d/rethinkdb.asc instead of 0bf0d91a102b014fb58dbf93987bb7607b983d4c:

# Download the public key.
wget -qO- https://download.rethinkdb.com/repository/raw/pubkey.gpg | \
    sudo gpg --dearmor -o /usr/share/keyrings/rethinkdb-archive-keyrings.gpg

But also I have not tried gpg --dearmor since it is not on the install on Debian page.