Commit d23b1e6a authored by anarcat's avatar anarcat

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.)
parent 96b199b7
......@@ -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 stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list
sudo sh -c 'echo "deb stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list'
sudo apt update && sudo apt install -t stretch-backports leap-archive-keyring
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment