question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error during build: Compressor "xz" is not supported

See original GitHub issue
  • Version: 22.4.1
  • Electron Version: 8.2.0
  • Electron Type (current, beta, nightly): Current
  • Electron Updater: Not used
  • Target: Linux armv7l snap/appImage/deb (Error on all three package types)

When trying to build my application I run into the following error:

⨯ cannot execute  cause=exit status 1
                    errorOut=/home/astrogd/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs: Compressor "xz" is not supported!
    /home/astrogd/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs: Compressors available:
        gzip (default)

                    command=/home/astrogd/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/gnome-platform /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/.DS_Store /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/desktop-gnome-specific.sh /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/usr /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/data-dir /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/lib /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/desktop-common.sh /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/desktop-init.sh /home/astrogd/Dev/dist/__snap-armhf/command.sh /home/astrogd/Dev/dist/__snap-armhf/scripts /home/astrogd/Dev/dist/__snap-armhf/meta /home/astrogd/Dev/dist/linux-armv7l-unpacked/libGLESv2.so /home/astrogd/Dev/dist/linux-armv7l-unpacked/crashpad_handler /home/astrogd/Dev/dist/linux-armv7l-unpacked/libvk_swiftshader.so /home/astrogd/Dev/dist/linux-armv7l-unpacked/swiftshader /home/astrogd/Dev/dist/linux-armv7l-unpacked/v8_context_snapshot.bin /home/astrogd/Dev/dist/linux-armv7l-unpacked/resources.pak /home/astrogd/Dev/dist/linux-armv7l-unpacked/libffmpeg.so /home/astrogd/Dev/dist/linux-armv7l-unpacked/resources /home/astrogd/Dev/dist/linux-armv7l-unpacked/raspi-foyer-anzeige /home/astrogd/Dev/dist/linux-armv7l-unpacked/snapshot_blob.bin /home/astrogd/Dev/dist/linux-armv7l-unpacked/locales /home/astrogd/Dev/dist/linux-armv7l-unpacked/chrome_200_percent.pak /home/astrogd/Dev/dist/linux-armv7l-unpacked/libEGL.so /home/astrogd/Dev/dist/linux-armv7l-unpacked/icudtl.dat /home/astrogd/Dev/dist/linux-armv7l-unpacked/chrome_100_percent.pak /home/astrogd/Dev/dist/linux-armv7l-unpacked/vk_swiftshader_icd.json /home/astrogd/Dev/dist/raspi-foyer-anzeige_1.0.0_armhf.snap -no-progress -quiet -noappend -comp xz -no-xattrs -no-fragments -all-root
                    workingDir=
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! raspi-foyer-anzeige@1.0.0 dist: `electron-builder --linux --armv7l deb`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the raspi-foyer-anzeige@1.0.0 dist script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/astrogd/.npm/_logs/2020-04-02T09_15_13_371Z-debug.log

Npm Debug log is attached.

I’m running Ubuntu Core in Classic mode on a Raspberry Pi 3B+

Is there a package that needs to be installed to enable xz compression? If so it is propably not installed, can you tell me which package this is?

If you need further information I’m happy to provide it.

Attachments

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
centerorbitcommented, Apr 28, 2020

I too experienced this issue, but passing a --dir fixed it for me. Give that a try?

Related: https://github.com/electron-userland/electron-builder/issues/4279

0reactions
Tony642commented, Jun 2, 2022

Hi, I have the same problem, and no matter what value I set on “compression”, the electron-builder keep giving me the same error message:

⨯ cannot execute  cause=exit status 1
                    errorOut=/home/tony/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs: Compressor "xz" is not supported!
    /home/tony/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs: Compressors available:
        gzip (default)

My node.js version: 14.15.0 My electron version: 13.6.9 My electron-builder version: 22.14.13 Target: Linux armv7l Device: Raspberry Pi 4 Model B Rev 1.2

And this is my configuration under vue.config.js:

            builderOptions: {
                "productName":"sys-ofl",
                "appId": "com.123",
                "copyright":"xxxx",
                "compression": "normal", 
                "directories": {
                    "output": "build"
                }, 
                "asar": true
            }

Please help me out! Thx

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron-builder outputs error: Compressor "xz" is not supported
Just for info, I was able to build it by setting: "compression": "normal", in my electron settings. The documentation says that there is...
Read more >
Potential workaround for kernel not supporting SquashFS with ...
My latest attempt involved building squashfs.ko as a kernel module with the XZ option turned on. But the kernel I'm building for already...
Read more >
Issue 6715: xz compressor support - Python tracker
msg91657 ‑ (view) Author: (devurandom) Date: 2009‑08‑17 09:47 msg91660 ‑ (view) Author: Skip Montanaro (skip.montanaro) * Date: 2009‑08‑17 11:51 msg91661 ‑ (view) Author: (devurandom) Date:...
Read more >
How do I get squashfs and XZ to work? - Unix Stack Exchange
I'm trying to get snap on Linux Mint, and I've run into too many ... uses xz compression, this is unsupported by this...
Read more >
ArchiveFiles@2 - Archive files v2 task - Microsoft Learn
#tarCompression: 'gz' # 'gz' | 'bz2' | 'xz' | 'none'. Optional. Use when archiveType = tar. Tar compression. Default: gz. archiveFile: '$(Build.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found