Page 1 of 3

Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 6:06 am
by DaHai8
I've tried to download the latest release of Raspbian three times now and each time it it is corrupt.

The SHA-1 checksum does not match at the img file is 807,167,523,358,810 bytes in size!

https://www.raspberrypi.org/downloads/raspbian/


Intervention by moderator:
Everybody who uses a classical unzipped will have problems unzipping a file larger than 4GB, as this image of Raspbian is. You need a (free) unzipper that can cope with ≥ 4GB files, like 7-zip. The problem will probably be solved in the next release, by shrinking the image to below 4GB.
P.S. The problem does NOT inflict the NOOBS installer which is much smaller, so NOOBS installers have no problems!
Mahjongg October 7, 2015

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 6:24 am
by rpdom
DaHai8 wrote:The SHA-1 checksum does not match at the img file is 807,167,523,358,810 bytes in size!
The SHA1 checksum is for the zip file, not the unzipped image, but it does look like you have a problem.

The zip file should be 1,038,523,231 bytes and unzip to 3,276,800,000

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 12:19 pm
by GMan2XS
I have a similar problem. I downloaded the Raspbian Jessie zip file & the SHA1 check matched. However when I tried to extract the image I got this:

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 12:35 pm
by PeterO
All seem fine here !

Code: Select all

-rw-r--r-- 1 sheepdip sheepdip 3276800000 May  7 01:00 2015-05-05-raspbian-wheezy.img
-rw-r--r-- 1 sheepdip sheepdip 4325376000 Sep 24 16:14 2015-09-24-raspbian-jessie.img
-rw-r--r-- 1 sheepdip sheepdip 1038523231 Sep 29 13:24 2015-05-05-raspbian-wheezy.zip
-rw-r--r-- 1 sheepdip sheepdip 1332985725 Sep 29 13:31 2015-09-24-raspbian-jessie.zip
PeterO

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 12:39 pm
by RaTTuS
Ih ave to say I also get the same - it's probably a bad mirror

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 12:44 pm
by ShiftPlusOne
I can confirm that windows explorer seems to think the file inside is massive. 7zip works fine

Some linux users have also reported problems.

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 12:48 pm
by Pi-Plates
Same problem here using windows 7 as of 8:30AM EDT. ZIP file is small enough but when I try to copy the contents to another folder it says it needs 734 PB.

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 12:52 pm
by PeterO
ShiftPlusOne wrote:I can confirm that windows explorer seems to think the file inside is massive. 7zip works fine

Some linux users have also reported problems.
To be clear, you are saying that some tools give wrong size but others give correct size using the same .zip file ?
PeterO

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 1:00 pm
by RogerW
Windows 10 reports the zip file as 1,301,744KB and the IMG file as 4224,000KB. I put it on an SD card and it seems to boot and run ok but I am having problems with apt-get which are probably unrelated.
How do you check the SHA-1?

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 1:01 pm
by RaTTuS
ShiftPlusOne wrote:I can confirm that windows explorer seems to think the file inside is massive. 7zip works fine

Some linux users have also reported problems.
I can confirm this
built in windows unzipper goes bad
everything else works a treat [so far]

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 1:11 pm
by ShiftPlusOne
PeterO wrote:
ShiftPlusOne wrote:I can confirm that windows explorer seems to think the file inside is massive. 7zip works fine

Some linux users have also reported problems.
To be clear, you are saying that some tools give wrong size but others give correct size using the same .zip file ?
PeterO
Yup, and apparently the built in Mac thing has trouble with it as well. Might be a format version that's newer than what those tools support or something.

Looking into getting a fixed archive up.

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 1:31 pm
by plugwash
If the file inside the zip is over 4GB then the resulting zip file will be in "zip64" format rather than the traditional zip format. It doesn't surprise me that some tools fail at handling this.

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 1:51 pm
by ShiftPlusOne
Well this is fun... if you use default tools to compress it in Windows, Mac will complain. If you compress it on a Mac, Windows will complain. If you compress it in Linux, Mac and Windows will both complain. I guess the next image will need to be a bit smaller to avoid this happening again.

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 1:56 pm
by fruitoftheloom
ShiftPlusOne wrote:Well this is fun... if you use default tools to compress it in Windows, Mac will complain. If you compress it on a Mac, Windows will complain. If you compress it in Linux, Mac and Windows will both complain. I guess the next image will need to be a bit smaller to avoid this happening again.
So the answer is 7 ZIP ??

http://www.7-zip.org/download.html

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 2:47 pm
by ShiftPlusOne
Yeah, and 'The Unarchiver' on Macs.

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 2:52 pm
by fruitoftheloom
ShiftPlusOne wrote:Yeah, and 'The Unarchiver' on Macs.
There is an unofficial 7Zip for OSX in the link I posted :)

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 2:54 pm
by ShiftPlusOne
Ah, didn't scroll down far enough. :oops:

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 2:58 pm
by gordon77
RaTTuS wrote:
ShiftPlusOne wrote:I can confirm that windows explorer seems to think the file inside is massive. 7zip works fine

Some linux users have also reported problems.
I can confirm this
built in windows unzipper goes bad
everything else works a treat [so far]
I downloaded the zip, used Win10 File Explorer, Right clicked on the zip and 'extract all', no issues...

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 3:01 pm
by Massi
gordon77 wrote:Win10 File Explorer
win7 file explorer is buggy (a HUGE img file :))

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 3:29 pm
by bfinio
Just wanted to jump in to say that I had the same issue in Windows 7 as of 11:30AM on Sept. 29th. File Explorer wouldn't extract the .zip file, gave an error that it needed 734 PB. Downloaded 7zip and used that instead, worked fine.

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 5:23 pm
by proudindiv
rpdom wrote:
DaHai8 wrote:The SHA-1 checksum does not match at the img file is 807,167,523,358,810 bytes in size!
The SHA1 checksum is for the zip file, not the unzipped image, but it does look like you have a problem.

The zip file should be 1,038,523,231 bytes and unzip to 3,276,800,000
Correct, that works. I used 7z on windows 7 and the ubuntu extractor and both worked. Windows 7 explorer can't extract it. Thanks.

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 5:25 pm
by proudindiv
Massi wrote:
gordon77 wrote:Win10 File Explorer
win7 file explorer is buggy (a HUGE img file :))
Correction: all Microsoft products are buggy. FTFY
That's why we prefer Linux.

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 5:27 pm
by GMan2XS
Did not want to install any more software on my laptop so moved the zip file to a NAS & then used unzip on a Pi2 to inflate the image, took a few minutes, but that is presumably because of the 100Mbps networking restriction. Worked fine.

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 5:35 pm
by MrEngman
After seeing the various issues above I tried using Windows Explorer to see what would happen and it unzipped OK on my Win 7 Ultimate 64bit.

But I also have an up to date version of Winzip which I normally use which has no problems with this large file.


MrEngman

Re: Raspbian Jessie zip appears corrupt

Posted: Tue Sep 29, 2015 6:38 pm
by mad-hatter
Hello,

This problem with Winzip, depends on which version you have, and 32 or 64 bit systems.
http://kb.winzip.com/kb/entry/99/
Original limitations

The maximum file size made possible by the original, open source Zip file specification was 4 gigabytes. This limit applied both to the uncompressed and compressed sizes of files inside Zip files, and also to the total size of a Zip file itself. Specifically, this 4 gigabyte limit applied to WinZip 8.1 and earlier.

If you tried to zip a file larger than 4 gigabytes, WinZip versions earlier than WinZip 9.0 would issue the following message:
The file is too big to be stored in a Zip file and will be skipped.

These older WinZip versions were also limited as to the number of files and folders that could be zipped. The upper number limit was 65,535. This number limit, as well as the size limits above, are both part of the original Zip file format.
Regards