From d23b1e6af36e0d22990da87b2a84d67fd5abd074 Mon Sep 17 00:00:00 2001 From: anarcat Date: Mon, 17 Sep 2018 06:53:01 -0700 Subject: fix permission error when adding backports I think those instructions are too complicated - `sh -c` will be difficult to parse for new (or even experienced) users and is error prone. Nevertheless, the instructions as is will not work because the redirection does not run as root, as is the case for the other instructions. This was probably forgotten when adding the backports entry (which goes to show this is error-prone). (I would instead recommend "piping to tee", like `echo ... | sudo tee -a sources.list`, for example.) --- pages/install/linux/en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/install/linux/en.md b/pages/install/linux/en.md index 04b7ccd..81ed467 100644 --- a/pages/install/linux/en.md +++ b/pages/install/linux/en.md @@ -24,7 +24,7 @@ You need to enable `stretch-backports` to install the latest `leap-archive-keyri if you already have `stretch-backports` enabled): ``` -sudo echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list +sudo sh -c 'echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list' sudo apt update && sudo apt install -t stretch-backports leap-archive-keyring ``` -- cgit v1.2.3