Error when downloading CRX file from Chrome Web Store: CRX_HEADER_INVALID

36,382

Solution 1

  1. Unpack downloaded CRX file eg 7zip
  2. In chromium extention page turn on developer mode
  3. Click 'download unpacked extension' and choose your folder

Solution 2

Why does this error occur?

According to Chrome Enterprise release notes:

  • CRX2 deprecation

    Starting with Chrome 70, all non-force-installed extensions must be packaged in the CRX3 format. Extensions signed and hosted in the Chrome Web Store have been automatically converted.

    Starting with Chrome 75, this restriction will also apply to force-installed extensions. Privately hosted extensions that were packaged using a custom script or a version of Chrome prior to Chrome 64.0.3242.0 must be repackaged.

    If your organization is force-installing privately hosted extensions packaged in CRX2 format and you do not repackage them, they will stop updating in Chrome 75. New installations of the extension will fail.

However, it seems like in Chrome 73 Google forced this change for new installations already and introduced a new policy option for updates only.

But wait, it says all of them were converted automatically, so...

Why does it occur in your case?

According to resolution of this (not-a-)bug:

Beginning in M73, Chrome only allows installation of extensions signed with a CRX3 package. However, the webstore contains copies of both CRX2 and CRX3 versions (in order to accommodate older Chrome versions that can't handle CRX3), and by default, will serve CRX2.

The [...] package is using the old endpoint which will retrieve CRX2s, and so newer versions of Chrome will disallow the installation. [...] downloading libraries need to update their code to request CRX3s, and then this would work in all modern Chrome versions (CRX3s have been supported for several versions now).

So the problem is you were using an outdated URL to download extensions. See this answer for current URL format.

Solution 3

Latest versions of chrome accept only crx3 format.. So can convert the crx file into zip. You can get the CRX file by giving your extension url in to this link

https://chrome-extension-downloader.com/

You can convert the crx file in to zip by using this below link,

https://johankj.github.io/convert-crx-to-zip/

then, to open the chrome browser with

Share:
36,382
Admin
Author by

Admin

Updated on July 09, 2022

Comments

  • Admin
    Admin almost 2 years

    When i get any CRX extension file by the following link:

    https://clients2.google.com/service/update2/crx?response=redirect&prodversion=49.0&x=id%3D<EXTENSION_ID>%26installsource%3Dondemand%26uc
    

    on Chrome version 73.0.3683.86 i get CRX_HEADER_INVALID error with any ID on Web Store, however on older Chrome versions it's okay.

    Besides, i can download a CRX file by third-party site, but when i add it at chrome://extensions/ i also get CRX_HEADER_INVALID error.

    All of this applies when i work with latest version of Chrome. Does anyone know what's the problem?

  • KulaGGin
    KulaGGin almost 5 years
    Ok, it works like that but it is not a solution to the problem in question - how to fix CRX_HEADER_INVALID error in new Chromes while trying to load .crx extension. Other hack is to use older version of Chrome: reddit.com/r/chrome/comments/91roxd/…
  • focus zheng
    focus zheng over 2 years
    it is an amazing tools johankj.github.io/convert-crx-to-zip. thanks