Answers.Body: <p>Discussed this a bit over Mattermost. For debugging this, it made sense to run the first half of the command and check the output, e.g.</p>
  
  <pre><code>curl -Ls https://civicrm.org/get-buildkit.sh
  </code></pre>
  
  <p>It should display a bash script. However, it actually displayed an error message about an IP restriction. A quick work-around was to download the script through a different URL, i.e.</p>
  
  <pre><code>curl https://raw.githubusercontent.com/civicrm/civicrm-buildkit/master/bin/civi-download-tools | bash -s -- --full --dir ~/buildkit
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-05T21:16:57.670Z
Answers.Text: for users of Ubuntu variants such as ** elamentary ** be sure to change the distribution code name using export DISTRIB_CODENAME=trusty
Answers.UserDisplayName: Agbor
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-05T20:47:07.610Z
Answers.LastActivityDate: 2016-09-05T20:47:07.610Z
Answers.UserDisplayName: Tim Otten
Body: <p>On a fresh Ubuntu system when running the command   </p>
  
  <blockquote>
    <p>curl -Ls <a href="https://civicrm.org/get-buildkit.sh" rel="nofollow">https://civicrm.org/get-buildkit.sh</a> | bash -s -- --full --dir ~/buildkit</p>
  </blockquote>
  
  <p>as requested on the document on the repository, i get the following error</p>
  
  <blockquote>
    <p>bash: line 1: unexpected EOF while looking for matching `''
    bash: line 2: syntax error: unexpected end of file</p>
  </blockquote>
  
  <p>and the download fails to proceed.</p>
  
Tags: <developer><civicrm-buildkit>
Title: Unable to download buildkit on ubuntu
ThreadText: # Unable to download buildkit on ubuntu
  
  (Asked by: username_0 on 2016-09-05)
  
  On a fresh Ubuntu system when running the command
  
  > curl -Ls <https://civicrm.org/get-buildkit.sh> | bash -s -- --full --dir ~/buildkit
  
  as requested on the document on the repository, i get the following error
  
  > bash: line 1: unexpected EOF while looking for matching `''
  > bash: line 2: syntax error: unexpected end of file
  
  and the download fails to proceed.
  
  **Tags:** developer, civicrm-buildkit
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-09-05. Score: 1 | Accepted answer
  
  Discussed this a bit over Mattermost. For debugging this, it made sense to run the first half of the command and check the output, e.g.
  
  ```
  curl -Ls https://civicrm.org/get-buildkit.sh
  
  ```
  
  It should display a bash script. However, it actually displayed an error message about an IP restriction. A quick work-around was to download the script through a different URL, i.e.
  
  ```
  curl https://raw.githubusercontent.com/civicrm/civicrm-buildkit/master/bin/civi-download-tools | bash -s -- --full --dir ~/buildkit
  
  ```
  
  > **Comments:**
  > **username_0**: for users of Ubuntu variants such as ** elamentary ** be sure to change the distribution code name using export DISTRIB_CODENAME=trusty  
  
  ---
  
  