title: Shell driver install with `ACCEPT_EULA=Y` error
body: <p>As described <a href="https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-2017" rel="nofollow noreferrer">here</a>, I am trying to install the following driver in shell, using this code (modified from the original slightly):</p>
  
  <pre><code>curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
  curl https://packages.microsoft.com/config/debian/8/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
  sudo apt-get update
  sudo ACCEPT_EULA=Y apt-get install msodbcsql17
  </code></pre>
  
  <p>But I get an error on the last command:</p>
  
  <pre><code>sudo: sorry, you are not allowed to set the following environment variables: ACCEPT_EULA
  </code></pre>
  
  <p>After searching, I can't seem to find this exact error anywhere else.</p>
  
  <p>One solution is to run the last command without <code>ACCEPT_EULA=Y</code> as <code>sudo apt-get install msodbcsql17</code>. And then to enter <code>Y</code> at the prompt. This indeed works but I would like to run the above installation for other users without need of their input.</p>
  
  <ul>
  <li>Is there a way to resolve the above error so I can use <code>ACCEPT_EULA=Y</code>, or</li>
  <li>alternatively is there a simple way to enter the <code>Y</code> response for the EULA
  automatically so the end user never needs to take any action?</li>
  </ul>
  
  <p>Thank you in advance. </p>