Sha1sum Mismatch When Trying to Install GDIPlus :(

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
slevytam
Level 1
Level 1
Posts: 7
Joined: Wed Aug 25, 2010 4:37 pm

Sha1sum Mismatch When Trying to Install GDIPlus :(

Post by slevytam »

Hi,

I'm getting a sha1sum mismatch when trying to install gdiplus. Can anyone help me with this?

Code: Select all

sh winetricks gdiplus
Executing curl -L -o WindowsXP-KB975337-x86-ENU.exe -C - --header Accept-Encoding: gzip,deflate http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  852k  100  852k    0     0   817k      0  0:00:01  0:00:01 --:--:-- 1040k
------------------------------------------------------
sha1sum mismatch!  Rename /Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe and try again.
Thank you,

slevytam
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: Sha1sum Mismatch When Trying to Install GDIPlus :(

Post by dimesio »

slevytam wrote:

Code: Select all

sha1sum mismatch!  Rename /Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe and try again.
Do what the message tells you to do.
slevytam
Level 1
Level 1
Posts: 7
Joined: Wed Aug 25, 2010 4:37 pm

Post by slevytam »

I have already done that.

Any other suggestion?
John Drescher

Sha1sum Mismatch When Trying to Install GDIPlus :(

Post by John Drescher »

I have already done that.

Any other suggestion?
The sha verification is a code that verifies that the downloaded file
is not corrupt or infected with a virus... Either there is some
problem on your side (hardware or software) causing the verification
algorithm to fail or Microsoft changed the redistributable file on
their end. I am not sure if Microsoft will change the file without
changing the path though. I will check on my end later.

John
John Drescher

Sha1sum Mismatch When Trying to Install GDIPlus :(

Post by John Drescher »

On Wed, Aug 25, 2010 at 9:30 PM, John Drescher <[email protected]> wrote:
I have already done that.

Any other suggestion?
The sha verification is a code that verifies that the downloaded file
is not corrupt or infected with a virus... Either there is some
problem on your side (hardware or software) causing the verification
algorithm to fail or Microsoft changed the redistributable file on
their end. I am not sure if Microsoft will change the file without
changing the path though. I will check on my end later.
I do not have this sha verification problem here. Did you use the
current winetricks. I just downloaded it from www.kegel.com

wget http://www.kegel.com/wine/winetricks

John
slevytam
Level 1
Level 1
Posts: 7
Joined: Wed Aug 25, 2010 4:37 pm

Post by slevytam »

Thanks very much for the reply.

Here is an image showing exactly my commands and results. Still don't understand why this doesn't work.

Image

Image
John Drescher

Sha1sum Mismatch When Trying to Install GDIPlus :(

Post by John Drescher »

On Wed, Aug 25, 2010 at 11:48 PM, slevytam <[email protected]> wrote:
Thanks very much for the reply.

Here is an image showing exactly my commands and results.  Still don't understand why this doesn't work.

[Image: http://i34.tinypic.com/o9jzlu.png ]

[Image: http://i36.tinypic.com/2s00ga1.png ]
From your picture you did not delete the file from the cache (at least
for the example you posted). Try that and post the result again. This
could be an os bug with wget. I have seen this before.

John
John Drescher

Sha1sum Mismatch When Trying to Install GDIPlus :(

Post by John Drescher »

Here is a second thing to try

openssl dgst -sha1
/Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe

The result should be similar to this (updated to your path):


windows@jmd0 ~ $ openssl dgst -sha1
/home/windows/.winetrickscache/WindowsXP-KB975337-x86-ENU.exe
SHA1(/home/windows/.winetrickscache/WindowsXP-KB975337-x86-ENU.exe)=
b9a84bc3de92863bba1f5eb1d598446567fbc646
John Drescher

Sha1sum Mismatch When Trying to Install GDIPlus :(

Post by John Drescher »

openssl dgst -sha1
/Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe
My mail program has cut this off. The command above should have been
on 1 single line.

John
slevytam
Level 1
Level 1
Posts: 7
Joined: Wed Aug 25, 2010 4:37 pm

Post by slevytam »

Hi, below is a pic that shows the deletion of the file and the openssl dgst -sha1 command. This really doesn't make sense to me!

I do appreciate the help. Sorry about bleeping the username but this installation was supposed to be part of a tutorial that will hopefully be published.

Image
John Drescher

Sha1sum Mismatch When Trying to Install GDIPlus :(

Post by John Drescher »

On Thu, Aug 26, 2010 at 1:28 AM, slevytam <[email protected]> wrote:
Hi, below is a pic that shows the deletion of the file and the openssl dgst -sha1 command.  This really doesn't make sense to me!

I do appreciate the help.  Sorry about bleeping the username but this installation was supposed to be part of a tutorial that will hopefully be published.

[Image: http://i37.tinypic.com/2emcrbp.png ]
Your file is not corrupted. b9a84bc3de92863bba1f5eb1d598446567fbc646
is the correct hash.

To me it looks like some kind of bug with winetricks and its
verification of the sha1sum.

You may want to add a couple of echos in the following code:

# verify an sha1sum
verify_sha1sum() {
wantsum=$1
file=$2

gotsum=`$SHA1SUM < "$file" | sed 's/ .*//'`
if [ "$gotsum"x != "$wantsum"x ]
then
die "sha1sum mismatch! Rename $file and try again."
fi
}

to make it

# verify an sha1sum
verify_sha1sum() {
wantsum=$1
file=$2

gotsum=`$SHA1SUM < "$file" | sed 's/ .*//'`

echo "\"gotsum \"=\"$gotsum\""
echo "\"wantsum\"=\"$wantsum\""
if [ "$gotsum"x != "$wantsum"x ]
then
die "sha1sum mismatch! Rename $file and try again."
fi
}


And see what is going wrong.

Expected output is

windows@jmd0 ~ $ sh winetricks gdiplus
"gotsum "="b9a84bc3de92863bba1f5eb1d598446567fbc646"
"wantsum"="b9a84bc3de92863bba1f5eb1d598446567fbc646"
Executing wine /home/windows/.winetrickscache/WindowsXP-KB975337-x86-ENU.exe
/extract:c:\winetrickstmp /q

Again paths and usernames will be different.

I am done for now. It's 1:52 AM and I need my sleep..

John
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

Try running winetricks verbosely, e.g.
winetricks -v gdiplus 2>&1
or
sh -x winetricks gdiplus > log 2>&1
Then look at the log. This already shows what you need, I think.
On my system, the interesting bit is

+ verify_sha1sum b9a84bc3de92863bba1f5eb1d598446567fbc646 /home/dank/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe
+ wantsum=b9a84bc3de92863bba1f5eb1d598446567fbc646
+ file=/home/dank/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe
++ sha1sum
++ sed 's/ .*//'
+ gotsum=b9a84bc3de92863bba1f5eb1d598446567fbc646
+ '[' b9a84bc3de92863bba1f5eb1d598446567fbc646x '!=' b9a84bc3de92863bba1f5eb1d598446567fbc646x ']'
slevytam
Level 1
Level 1
Posts: 7
Joined: Wed Aug 25, 2010 4:37 pm

Post by slevytam »

Thanks, here is the verbose mode output:

Code: Select all

+ mkdir -p /Users/Username/.winetrickscache/.
+ test '!' -f /Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe
+ '[' b9a84bc3de92863bba1f5eb1d598446567fbc646x '!=' x ']'
+ verify_sha1sum b9a84bc3de92863bba1f5eb1d598446567fbc646 /Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe
+ wantsum=b9a84bc3de92863bba1f5eb1d598446567fbc646
+ file=/Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe
++ openssl dgst -sha1
++ sed 's/ .*//'
+ gotsum='(stdin)='
+ '[' '(stdin)=x' '!=' b9a84bc3de92863bba1f5eb1d598446567fbc646x ']'
+ die 'sha1sum mismatch!  Rename /Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe and try again.'
[/code]
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

What does

file=/Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe
openssl dgst -sha1 < "$file"

output? It looks like there's an extra space I didn't expect somewhere.
slevytam
Level 1
Level 1
Posts: 7
Joined: Wed Aug 25, 2010 4:37 pm

Post by slevytam »

Here's the output. Is there supposed to be a space after the =?

Code: Select all

$ file=/Users/Username/.winetrickscache/./WindowsXP-KB975337-x86-ENU.exe 
$ openssl dgst -sha1 < "$file"
(stdin)= b9a84bc3de92863bba1f5eb1d598446567fbc646
$
Thanks :)
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

Try this new version:
http://winezeug.googlecode.com/svn/trunk/winetricks

Does it work any better?
slevytam
Level 1
Level 1
Posts: 7
Joined: Wed Aug 25, 2010 4:37 pm

Post by slevytam »

Thank! This did work! I really appreciate the help.
Locked