Browse Source

Docs: Update repositories.asciidoc

1. Enable the repository using "add-apt-repository" to avoid this error "No command 'deb' found".
2. Adding "sudo" to update and install command.

Closes #8691
Ashraf Sarhan 11 years ago
parent
commit
24f8807cb5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/reference/setup/repositories.asciidoc

+ 2 - 2
docs/reference/setup/repositories.asciidoc

@@ -27,14 +27,14 @@ Add the following to your /etc/apt/sources.list to enable the repository
 
 ["source","sh",subs="attributes,callouts"]
 --------------------------------------------------
-deb http://packages.elasticsearch.org/elasticsearch/{branch}/debian stable main
+sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/{branch}/debian stable main"
 --------------------------------------------------
 
 Run apt-get update and the repository is ready for use. You can install it with :
 
 [source,sh]
 --------------------------------------------------
-apt-get update && apt-get install elasticsearch
+sudo apt-get update && sudo apt-get install elasticsearch
 --------------------------------------------------
 
 Configure Elasticsearch to automatically start during bootup :