title: Raspberry Pi Proxy Settings don't work; Extra junk at end of file
body: <p>I'm new to working with the Raspberry Pi and had some Problems connecting to the internet.</p>
  
  <p>Since my Companys Ethernet is behind a Proxy I added 2 Files at:</p>
  
  <p>etc/apt/apt.conf.d/10proxy</p>
  
  <p>etc/profile.d/proxy.sh</p>
  
  <p>10proxy looks like this:</p>
  
  <pre><code>Acquire::http::proxy "{myproxy}:{port}";  
  Acquire::https::proxy "{myproxy}:{port}";
  Acquire::ftp::proxy "{myproxy}:{port}";
  </code></pre>
  
  <p>proxy.sh looks like:</p>
  
  <pre><code>export http_proxy=“{myproxy}:{port}”;
  export https_proxy=“{myproxy}:{port}”;
  export ftp_proxy=“{myproxy}:{port}”;
  
  export HTTP_PROXY=$http_proxy;
  export HTTPS_PROXY=$https_proxy;
  export FTP_PROXY=$ftp_proxy;
  </code></pre>
  
  <p>With these two files in place i still cant access the Internet.
  When doing a</p>
  
  <pre><code>sudo apt-get update
  </code></pre>
  
  <p>i get an Error</p>
  
  <pre><code>Syntax ERROR: 10proxy:4: Extra junk at end of File
  </code></pre>
  
  <p>All the other similar questions i found were answered with: Put a semicolon after each line, but I habe semicolons there.</p>
  
  <p>Thanks for any help!</p>
  
  <p>Regards,
  Felix</p>