From 6e5898ac796bf7e083567eec7ba6bda9ad3b9537 Mon Sep 17 00:00:00 2001 From: Gautham Pai Date: Sat, 20 Jul 2019 16:27:18 +0530 Subject: [PATCH] Docs: sudo is required on the apt-key add not on wget (#18180) Running the command as given in the current doc throws the error: ``` sudo wget -q -O - https://packages.grafana.com/gpg.key | apt-key add - ERROR: This command can only be used by root. ``` The proposed change fixes this issue. --- docs/sources/installation/debian.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/installation/debian.md b/docs/sources/installation/debian.md index 2f50db74387..842323ad313 100644 --- a/docs/sources/installation/debian.md +++ b/docs/sources/installation/debian.md @@ -51,7 +51,7 @@ sudo add-apt-repository "deb https://packages.grafana.com/oss/deb beta main" Use the above line even if you are on Ubuntu or another Debian version. Then add our gpg key. This allows you to install signed packages. ```bash -sudo wget -q -O - https://packages.grafana.com/gpg.key | apt-key add - +wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add - ``` Update your Apt repositories and install Grafana