Gzip-compressed data is corrupt (CRC32) on Arch Linux

I'm using Arch Linux. I had install Arduino IDE via pacman (package manager), and did all that was written on official wiki. And when I install library for ESP8266, it output error:

Gzip-compressed data is corrupt (CRC32).

What can I do?

Hi @hiusv

Please post a link to the wiki page.

Please provide detailed instructions we could follow to reproduce this error.

Link to wiki: Arduino - ArchWiki

From GitHub - esp8266/Arduino: ESP8266 core for Arduino I did instruction for install ESP8266 library.

Output:

 Gzip-compressed data is corrupt (CRC32 error)
java.lang.RuntimeException: java.io.IOException: Gzip-compressed data is corrupt (CRC32 error)
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:179)
	at java.lang.Thread.run(Thread.java:750)
Caused by: java.io.IOException: Gzip-compressed data is corrupt (CRC32 error)
	at org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.read(GzipCompressorInputStream.java:325)
	at java.io.InputStream.skip(InputStream.java:224)
	at org.apache.commons.compress.utils.IOUtils.skip(IOUtils.java:90)
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.consumeRemainderOfLastBlock(TarArchiveInputStream.java:633)
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getRecord(TarArchiveInputStream.java:361)
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:238)
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextEntry(TarArchiveInputStream.java:526)
	at cc.arduino.utils.ArchiveExtractor.extract(ArchiveExtractor.java:119)
	at cc.arduino.utils.ArchiveExtractor.extract(ArchiveExtractor.java:82)
	at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:141)
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:172)
	... 1 more

I did notice this in the wiki page:

You might need to install perl-archive-zip or you will get an error about missing crc32.

There aren't any details so I have no clue whether it is relevant, but it might be that it is failing to run the CRC32 check altogether and interpreting that as a corruption. Or maybe that is something specific to the "Redbear Duo" and not at all relevant to installing the "library for ESP8266" (whatever that means).

Thanks for help, and sorry for my bad English and for my inattentive mind!
It's works!

You are welcome. I'm glad it is working now. Enjoy!

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.