title: How to install VSCODE on debian 9? Nothing works
body: <p>I'm trying to install Visual studio code.</p>
  
  <p>My Raspb. Version is:</p>
  
  <p>Distributor ID: Raspbian</p>
  
  <p>Description:    Raspbian GNU/Linux 9.8 (stretch)</p>
  
  <p>Release:    9.8</p>
  
  <p>Codename:   stretch</p>
  
  <p>I tried several method (starting to download .deb and using dpkg or install command) but nothing worked.</p>
  
  <p>How can I fix this problem? I really need VSC because my project is growing and Geany messes up.</p>
  
  <p>Downloaded .deb and .tar files from the official site, followed the setup instruction but I got this error</p>
  
  <p>With dpkg (both 32 and 64bit):</p>
  
  <pre><code>"package architecture (amd64) does not match system (armhf)"
  
  "package architecture (i386) does not match system (armhf)"
  </code></pre>
  
  <p>With sudo install:</p>
  
  <pre><code>sudo apt install ./code_1.33.1-1554971066_amd64.deb 
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Note, selecting 'code:amd64' instead of './code_1.33.1-1554971066_amd64.deb'
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:
  
  The following packages have unmet dependencies:
   code:amd64 : Depends: libnotify4:amd64 but it is not installable
                Depends: libnss3:amd64 (&gt;= 2:3.26) but it is not installable
                Depends: apt:amd64 but it is not installable
                Depends: libxkbfile1:amd64 but it is not installable
                Depends: libsecret-1-0:amd64 but it is not installable
                Depends: libgtk-3-0:amd64 (&gt;= 3.10.0) but it is not installable
                Depends: libxss1:amd64 but it is not installable
  E: Unable to correct problems, you have held broken packages.
  </code></pre>
  
  <p>With repository:</p>
  
  <pre><code>pi@raspberrypi:~/Downloads $ sudo apt-get update
  Err:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
    Temporary failure resolving 'raspbian.raspberrypi.org'
  Err:2 http://archive.raspberrypi.org/debian stretch InRelease
    Temporary failure resolving 'archive.raspberrypi.org'
  Err:3 https://packages.microsoft.com/repos/vscode stable InRelease
    Could not resolve host: packages.microsoft.com
  Reading package lists... Done
  W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/InRelease  Temporary failure resolving 'raspbian.raspberrypi.org'
  W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease  Temporary failure resolving 'archive.raspberrypi.org'
  W: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/InRelease  Could not resolve host: packages.microsoft.com
  W: Some index files failed to download. They have been ignored, or old ones used instead.
  pi@raspberrypi:~/Downloads $ sudo apt-get install code
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  E: Unable to locate package code
  </code></pre>
  
  <p>I'm getting mad about this problem, I tried older repository but they don't work.</p>