Skip to content

Commit 0f7bb5c

Browse files
committed
Install: Update Debian/Ubuntu installation instructions
> The GPG key handling in the Debian/Ubuntu installation documentation > is incorrect. The ASCII-armored key is being written directly to > `/etc/apt/trusted.gpg.d/`, which apt rejects with an unsupported file > type error. This causes repository signatures to remain untrusted and > installations to fail.
1 parent 1f9da8a commit 0f7bb5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/install/debian-ubuntu.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ the CrateDB package repository:
2121
```shell
2222
# Install prerequisites.
2323
sudo apt update
24-
sudo apt install --yes apt-transport-https apt-utils curl gnupg lsb-release
24+
sudo apt install --yes curl gnupg procps
2525

2626
# Import the public GPG key for verifying the package signatures.
2727
curl -sS https://cdn.crate.io/downloads/debian/DEB-GPG-KEY-crate | \
28-
sudo tee /etc/apt/trusted.gpg.d/cratedb.asc
28+
gpg --dearmor | sudo tee /usr/share/keyrings/cratedb.gpg >/dev/null
2929

3030
# Add CrateDB repository to Apt
31-
echo "deb https://cdn.crate.io/downloads/debian/stable/ default main" | \
31+
echo "deb [signed-by=/usr/share/keyrings/cratedb.gpg] https://cdn.crate.io/downloads/debian/stable/ default main" | \
3232
sudo tee /etc/apt/sources.list.d/crate-stable.list
3333
```
3434

@@ -52,7 +52,7 @@ repository is correctly registered.
5252
With everything set up, you can install CrateDB:
5353

5454
```shell
55-
sh$ sudo apt install crate
55+
sh$ sudo apt install --yes crate
5656
```
5757

5858
After the installation is finished, you can start the `crate` service:

0 commit comments

Comments
 (0)