# Hash Mismatch on Latest Sundials

**URL:** https://discourse.julialang.org/t/hash-mismatch-on-latest-sundials/9128
**Category:** General Usage
**Created:** [February 17, 2018, 2:26pm UTC](https://discourse.julialang.org/t/hash-mismatch-on-latest-sundials/9128 "2018-02-17T14:26:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)
#### Post date: [February 17, 2018, 2:26pm UTC](https://discourse.julialang.org/t/hash-mismatch-on-latest-sundials/9128/1 "2018-02-17T14:26:40Z")

</div>

After doing a `Pkg.update()` yesterday, I got:

```julia
INFO: Could not locate libsundials_sunlinsolklu inside /Users/gideonsimpson/.julia/v0.6/Sundials/deps/usr/lib
INFO: Destination file /Users/gideonsimpson/.julia/v0.6/Sundials/deps/usr/downloads/Sundials.x86_64-apple-darwin14.tar.gz already exists, verifying...
INFO: Verification hash mismatch, hash cache invalidated
INFO: Calculated hash cc15c458d73fb32d406c4e88b1478e0a1eaaf90a4675d91241224c3121ace343 for file /Users/gideonsimpson/.julia/v0.6/Sundials/deps/usr/downloads/Sundials.x86_64-apple-darwin14.tar.gz
==============================[ERROR: Sundials]===============================

LoadError: Hash Mismatch!
  Expected sha256: 7c9b0a73c334c9e7cd3b7b43a6df8c9275feb7fd02c7240e3804ea29a50dbedb
  Calculated sha256: cc15c458d73fb32d406c4e88b1478e0a1eaaf90a4675d91241224c3121ace343
while loading /Users/gideonsimpson/.julia/v0.6/Sundials/deps/build.jl, in expression starting on line 56

================================================================================

================================[BUILD ERRORS]================================

WARNING: Sundials had build errors.

 - packages with build errors remain installed in /Users/gideonsimpson/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("Sundials")`
 - build a single package by running its `deps/build.jl` script

================================================================================

```

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [February 17, 2018, 3:03pm UTC](https://discourse.julialang.org/t/hash-mismatch-on-latest-sundials/9128/2 "2018-02-17T15:03:35Z")

</div>

> [@gideonsimpson](#):
>
> cc15c458d73fb32d406c4e88b1478e0a1eaaf90a4675d91241224c3121ace343

This is the old binary. Delete the old binaries. I think that’s in the installation folder?

@staticfloat this is what I was mentioning in

> <https://github.com/JuliaPackaging/BinaryProvider.jl/issues/29>
>
> Multiple reports which seem to be this same issue that users from the old Sundia…ls on MacOS get both binaries when it updates, and that confuses BinaryProvider.jl

It’s a pretty big issue with MacOS because that means BinaryProvider.jl installations can never smoothly update on MacOS. At least in the meantime we should have instructions for users that we can point to, and those should probably be part of the hash warnings.

---

<div class="post-metadata">

### Author: ![pasha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pasha/32/3319_2.png) [@pasha](https://discourse.julialang.org/u/pasha)
#### Post date: [February 17, 2018, 3:36pm UTC](https://discourse.julialang.org/t/hash-mismatch-on-latest-sundials/9128/3 "2018-02-17T15:36:17Z")

</div>

There’s more to it I think. Trying to resolve the above I basically did `Pkg.rm("Sundials"); Pkg.add("Sundials")` and the install failed with a 404.

I think the script is pointing to a non-existent binary. When I look in  
[https://github.com/JuliaDiffEq/SundialsBuilder/releases](https://github.com/JuliaDiffEq/SundialsBuilder/releases) I see workaround 0.0.2 but not workaround 0.0.3 .

```julia
[10:27:31] curl: (22) The requested URL returned error: 404 Not Found
==========================================================================================[ERROR: Sundials]==========================================================================================

LoadError: Could not download https://github.com/JuliaDiffEq/SundialsBuilder/releases/download/klu-workaround-0.0.3/Sundials.x86_64-linux-gnu.tar.gz to /home/pasha/.julia/v0.6/Sundials/deps/usr/downloads/Sundials.x86_64-linux-gnu.tar.gz
while loading /home/pasha/.julia/v0.6/Sundials/deps/build.jl, in expression starting on line 56

```

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [February 17, 2018, 3:46pm UTC](https://discourse.julialang.org/t/hash-mismatch-on-latest-sundials/9128/4 "2018-02-17T15:46:38Z")

</div>

We had a slight binary provider hiccup. Do a `Pkg.update()` and you should be fine. Sorry about that! But that’s unrelated to the MacOS BinaryProvider.jl update bug. @pasha let me know when you try it so I can know we’re all good.

---

<div class="post-metadata">

### Author: ![pasha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pasha/32/3319_2.png) [@pasha](https://discourse.julialang.org/u/pasha)
#### Post date: [February 17, 2018, 4:02pm UTC](https://discourse.julialang.org/t/hash-mismatch-on-latest-sundials/9128/5 "2018-02-17T16:02:38Z")

</div>

I ran `Pkg.update()` and it’s all good - downloaded, built, installed. Thank you.

Agreed that it’s unrelated to duplicate BinaryProvider. Maybe when those dual hash things show up you could point the user to what to delete to fix it, for example:

```julia
To fix, delete file /Users/gideonsimpson/.julia/v0.6/Sundials/deps/usr/downloads/Sundials.x86_64-apple-darwin14.tar.gz
And rerun Pkg.build("Sundials")

```

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [February 17, 2018, 4:04pm UTC](https://discourse.julialang.org/t/hash-mismatch-on-latest-sundials/9128/6 "2018-02-17T16:04:11Z")

</div>

> [@pasha](#):
>
> Maybe when those dual hash things show up you could point the user to what to delete to fix it, for example:

Added that to the issue. Probably a good quick PR.
