# Some index files failed to download

**URL:** https://dietpi.com/forum/t/some-index-files-failed-to-download/3307
**Category:** Troubleshooting
**Created:** [4 July 2019 06:22 UTC](https://dietpi.com/forum/t/some-index-files-failed-to-download/3307 "2019-07-04T06:22:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![FESyv](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/919ad9/32.png) [@FESyv](https://dietpi.com/forum/u/FESyv)
#### Post date: [4 July 2019 06:22 UTC](https://dietpi.com/forum/t/some-index-files-failed-to-download/3307/1 "2019-07-04T06:22:40Z")

</div>

RPi 3 model B v1.2  
Linux mname 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l GNU/Linux

created an image from dietpi and verified checksums. i’m trying to update via dietpi-update and ‘apt-get update’ and both ways return same hash mismatch.  
what can i try to fix this, hopefully without having to reimage/reinstall. tia

```nohighlight
 Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Hit:2 https://archive.raspberrypi.org/debian stretch InRelease
Get:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
Err:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
  Hash Sum mismatch
  Hashes of expected file:
   - Filesize:11662460 [weak]
   - SHA256:e3cc3d388f685eacb2e3c94991edfa5932e0a1a3a9bb951d1d47885ab6e883a4
   - SHA1:9d46b500f0130ac6d6a273f779f8013376cfe055 [weak]
   - MD5Sum:64f843df648b3026ebdf0d47c59832e4 [weak]
  Hashes of received file:
   - SHA256:e9d03d440152db104d3fe8bc78bd86e2746996f9b1bb8b2c956d42c5befee4b0
   - SHA1:2124231ea690bba3098505d3ade4bda8966f9a9f [weak]
   - MD5Sum:f753f60c613b3a7128c68e8d2168134f [weak]
   - Filesize:6452025 [weak]
  Last modification reported: Wed, 03 Jul 2019 04:26:44 +0000
  Release file created at: Thu, 04 Jul 2019 04:28:10 +0000
Fetched 6,467 kB in 1min 16s (84.5 kB/s)
Reading package lists... Done
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/main/binary-armhf/Packages.xz Hash Sum mismatch
   Hashes of expected file:
    - Filesize:11662460 [weak]
    - SHA256:e3cc3d388f685eacb2e3c94991edfa5932e0a1a3a9bb951d1d47885ab6e883a4
    - SHA1:9d46b500f0130ac6d6a273f779f8013376cfe055 [weak]
    - MD5Sum:64f843df648b3026ebdf0d47c59832e4 [weak]
   Hashes of received file:
    - SHA256:e9d03d440152db104d3fe8bc78bd86e2746996f9b1bb8b2c956d42c5befee4b0
    - SHA1:2124231ea690bba3098505d3ade4bda8966f9a9f [weak]
    - MD5Sum:f753f60c613b3a7128c68e8d2168134f [weak]
    - Filesize:6452025 [weak]
   Last modification reported: Wed, 03 Jul 2019 04:26:44 +0000
   Release file created at: Thu, 04 Jul 2019 04:28:10 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

```

---

<div class="post-metadata">

### Author: ![FESyv](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/919ad9/32.png) [@FESyv](https://dietpi.com/forum/u/FESyv)
#### Post date: [4 July 2019 17:12 UTC](https://dietpi.com/forum/t/some-index-files-failed-to-download/3307/2 "2019-07-04T17:12:40Z")

</div>

i was able to update via dietpi-update today from one rpi with 6.21.1-\>6.25.3 and another rpi 6.23.0-\>6.25.3.  
all is well in dietpiville today, thanks.

images used:

image DietPi\_RPi-ARMv6-Stretch.img 03.04.2019

```nohighlight
==================================================
Filename : DietPi_RPi-ARMv6-Stretch.img
MD5 : c2ef66686da801c9634f457c89f7be7b
SHA1 : 2f6054d9e844d01f1ae987926e21cecc56862dca
CRC32 : fb6bf06b
SHA-256 : f68ae1507a9e31857ef10a6fdc32dee3a9087e8d1bd7e255e99f71a0dc8b4458
SHA-512 : e74436a34689635abd42a561c4141c5b88be15d79a13d7bdb8cf88e6d12d3cdc9f1c9839f97846ef2ad7026447e824f9b089c47741ea0291321f1c71c21dd181
SHA-384 : d2d9127f47517b4a9a161c40be2e87912ad52a0f2e2ee32f844d393c931e727d690ecb36898bce6a076519cc8dea3434
Full Path : C:\Users\Micha\VirtualMachines\DietPi_RPi-ARMv6-Stretch.img
Modified Time : 04.03.2019 20:44:12
Created Time : 04.03.2019 20:44:12
Entry Modified Time: 04.03.2019 22:18:58
File Size : 645.004.800
File Version : 
Product Version : 
Identical : 
Extension : img
File Attributes : A
==================================================

```

image DietPi\_RPi-ARMv6-Stretch.img 05.17.2019

```nohighlight
MD5:	3e4d07cefbaacffda29de4ff3b337c71
SHA1:	a4daff81da660ce9b4d7aa3fb78a6da54fb5b399
SHA256:	a579033ec01754742834c7d6b2deed76c10720249cc33fd9814aa787032c64c3

```

---

<div class="post-metadata">

### Author: ![dsnyder0cnn](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/49beb7/32.png) [@dsnyder0cnn](https://dietpi.com/forum/u/dsnyder0cnn)
#### Post date: [4 July 2019 17:39 UTC](https://dietpi.com/forum/t/some-index-files-failed-to-download/3307/3 "2019-07-04T17:39:32Z")

</div>

Things might have been okay, but they are broken again. I just flashed a microSD card with an image that I just downloaded, and the RPi keeps trying and failing to update with this error:

```nohighlight
Reading package lists...
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/main/binary-armhf/Packages.xz Hash Sum mismatch
   Hashes of expected file:
    - Filesize:11662460 [weak]
    - SHA256:e3cc3d388f685eacb2e3c94991edfa5932e0a1a3a9bb951d1d47885ab6e883a4
    - SHA1:9d46b500f0130ac6d6a273f779f8013376cfe055 [weak]
    - MD5Sum:64f843df648b3026ebdf0d47c59832e4 [weak]
   Hashes of received file:
    - SHA256:dd6d7e3130bb020b531708f543c5557ccd155fbf27a789c3b21ed1c39763a366
    - SHA1:915f750d05aa88388af01d254920190a5ae28a5a [weak]
    - MD5Sum:934b2e88654056edd3148bd094e19d68 [weak]
    - Filesize:6218897 [weak]
   Last modification reported: Wed, 03 Jul 2019 04:26:44 +0000
   Release file created at: Thu, 04 Jul 2019 16:28:58 +0000

```

My guess is that global caches are still in an inconsistent state since this update went out ~1 hours ago. Ugh. I was hoping to get this things updated quickly. Time for a snack. Happy 4th.

– David

---

<div class="post-metadata">

### Author: ![dsnyder0cnn](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/49beb7/32.png) [@dsnyder0cnn](https://dietpi.com/forum/u/dsnyder0cnn)
#### Post date: [4 July 2019 17:46 UTC](https://dietpi.com/forum/t/some-index-files-failed-to-download/3307/4 "2019-07-04T17:46:53Z")

</div>

…and, we’re back. I wonder if making the hash for each release a unique filename might help with this cache inconsistency problem. It might be better to get 404’s than to pull down a hash file that is stale. Anyway, it seems the fix for this is to go have a sandwich and some coffee. 😉

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [11 August 2019 15:39 UTC](https://dietpi.com/forum/t/some-index-files-failed-to-download/3307/5 "2019-08-11T15:39:42Z")

</div>

dsnyder0cnn  
Sorry for not replying. Yeah I am pretty sure there were some repo inconsistencies that time due to the transition from Raspbian Stretch to Raspbian Buster. I faced multiple APT repo errors that days on both, RPi (Raspbian) and Debian systems… So yeah some Koffee or trying the other way worked 😃.
