title: VSCode Marketplace extension: Corrupt ZIP: end of central directory record signature not found
body: <p>I am trying to install a VSIX package downloaded from the Marketplace using <code>wget</code> on a Linux VM where the VSCode server is installed but I am getting the below error:</p>
  <pre><code>$ wget -nv https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/latest/vspackage -o vspackage.vsix
  $ code --install-extension vspackage.vsix
  Installing extensions on SSH: boozy-olive-harrier...
  Corrupt ZIP: end of central directory record signature not found
  Failed Installing Extensions: vscode-remote://ssh-remote%2Bboozy-olive-harrier/root/vspackage.vsix
  </code></pre>
  <p>Downloading the file with Firefox on Windows and using the &quot;Install from VSIX...&quot; button inside the VSCode client (<a href="https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix" rel="noreferrer">ref</a>) works as expected.</p>
  <p>The URL I am using is this one: <a href="https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/latest/vspackage" rel="noreferrer">https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/latest/vspackage</a></p>
  <p>I compared the md5sum of the downloaded files and I don't get the same if I download the file from Windows or Linux:</p>
  <p><strong>Linux VM:</strong></p>
  <ul>
  <li><code>wget</code></li>
  </ul>
  <pre><code>$ wget -nv https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/latest/vspackage
  2021-02-09 16:50:08 URL:https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/latest/vspackage [1270960/1270960] -&gt; &quot;vspackage&quot; [1]
  $ du -sk vspackage
  1244    vspackage
  $ md5sum vspackage
  10f6bdb1151a954a702f8a6db6f3bd52  vspackage
  </code></pre>
  <p><strong>Windows:</strong></p>
  <ul>
  <li>Firefox: <a href="https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd" rel="noreferrer">https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd</a></li>
  </ul>
  <pre><code>&gt; certutil.exe -hashfile .\llvm-vs-code-extensions.vscode-clangd-0.1.9.vsix MD5
  MD5 hash of .\llvm-vs-code-extensions.vscode-clangd-0.1.9.vsix:
  74f82f716616796157bde8008c8e5a45
  CertUtil: -hashfile command completed successfully.
  </code></pre>
  <ul>
  <li>Powershell</li>
  </ul>
  <pre><code>&gt; Invoke-WebRequest https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/latest/vspackage -OutFile vspackage
  &gt; Get-ChildItem .\vspackage | % {[int]($_.length / 1kb)}
  1383
  &gt; certutil.exe -hashfile .\vspackage MD5
  MD5 hash of .\vspackage:
  74f82f716616796157bde8008c8e5a45
  CertUtil: -hashfile command completed successfully.
  </code></pre>
  <p>The hash of the downloaded file is not the same even though the download URL is.</p>
  <p>It seems I am missing a few bytes on Linux which would explain the <em>Corrupt ZIP</em> error.</p>
  <p>Does somebody understand what I am missing here?</p>