drail
Posts: 1
Joined: Wed Aug 15, 2018 9:59 pm

Bad checksum after apt update

Wed Aug 15, 2018 10:04 pm

Hello, I have a problem with my pi0w, when I type him

Code: Select all

sudo apt update
in response i receive this:

Code: Select all

[email protected]:/etc/apt/sources.list.d $ sudo apt update
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Get:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease [15.0 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages [11.7 MB]
Err:3 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages
  Hash Sum mismatch
  Hashes of expected file:
   - Filesize:11656360 [weak]
   - SHA256:ecefaf7241bc5cf6a5722dcdc7defffe51cf2530c36b77160871d0d58b1e44de
   - SHA1:bc76e66d141345e308f3f3f80aca4ce8f712f626 [weak]
   - MD5Sum:344f56666ae178acd0f9b203bd962f2f [weak]
  Hashes of received file:
   - SHA256:71f99e976a573deb3d5706702ad2aa79cfac866207a8735d3805577863b3c2ee
   - SHA1:a3b32d88c258cb4f570a974e1c9eaab8d3f26e61 [weak]
   - MD5Sum:b4ca31d39272b7ea498e581d76e1e4ed [weak]
   - Filesize:623825 [weak]
  Last modification reported: Wed, 15 Aug 2018 17:04:34 +0000
  Release file created at: Wed, 15 Aug 2018 17:09:43 +0000
Get:4 http://mirrordirector.raspbian.org/raspbian stretch/contrib armhf Packages [56.9 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian stretch/non-free armhf Packages [95.2 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian stretch/rpi armhf Packages [1360 B]
Get:7 http://mirrordirector.raspbian.org/raspbian stretch/firmware armhf Packages [1232 B]
Fetched 639 kB in 5s (126 kB/s)
Reading package lists... Done
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/stretch/main/binary-armhf/Packages.xz  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:11656360 [weak]
    - SHA256:ecefaf7241bc5cf6a5722dcdc7defffe51cf2530c36b77160871d0d58b1e44de
    - SHA1:bc76e66d141345e308f3f3f80aca4ce8f712f626 [weak]
    - MD5Sum:344f56666ae178acd0f9b203bd962f2f [weak]
   Hashes of received file:
    - SHA256:71f99e976a573deb3d5706702ad2aa79cfac866207a8735d3805577863b3c2ee
    - SHA1:a3b32d88c258cb4f570a974e1c9eaab8d3f26e61 [weak]
    - MD5Sum:b4ca31d39272b7ea498e581d76e1e4ed [weak]
    - Filesize:623825 [weak]
   Last modification reported: Wed, 15 Aug 2018 17:04:34 +0000
   Release file created at: Wed, 15 Aug 2018 17:09:43 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
I tried apt clean, but it's not working.
I can ping domains, so connection is alright. Date is correct too.

Do you have any idea how to fix it?

User avatar
rpdom
Posts: 12960
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

Re: Bad checksum after apt update

Thu Aug 16, 2018 6:19 am

Free space on your SD card? The downloaded file sizes are smaller than the expected size.

What does the command

Code: Select all

df -h /
show?

Also, what size of card are you using?

awrc
Posts: 4
Joined: Wed Mar 22, 2017 6:10 pm

Re: Bad checksum after apt update

Thu Aug 16, 2018 1:53 pm

I'm also seeing checksum errors during apt-update:
Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:3 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]
Get:4 http://archive.raspberrypi.org/debian stretch/main armhf Packages [172 kB]
Get:5 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [34.0 kB]
Err:5 http://archive.raspberrypi.org/debian stretch/ui armhf Packages
Hash Sum mismatch
Hashes of expected file:
- Filesize:34000 [weak]
- SHA256:8a65365b24744683c70ddf2fcda1c578f828ba926025ab6c10ce59fa47cadca3
- SHA1:41af19d859e32695d8339a543b5f59c38b750609 [weak]
- MD5Sum:5812a1a530294fc16f102f8ab77df52e [weak]
Hashes of received file:
- SHA256:8192ac0db16c34e710338c6f52018aae9879efbdef3bca00ea3664473dc4bb10
- SHA1:46a2f02882a72a7166ced6556975bdc8831c5983 [weak]
- MD5Sum:2ce2d1cca66fd178cad12672b6220862 [weak]
- Filesize:33996 [weak]
Last modification reported: Thu, 09 Aug 2018 12:16:44 +0000
Release file created at: Thu, 16 Aug 2018 13:06:13 +0000
Get:6 http://raspbian.raspberrypi.org/raspbian stretch/contrib armhf Packages [56.9 kB]
Fetched 12.0 MB in 40s (293 kB/s)
Reading package lists... Done
E: Failed to fetch http://archive.raspberrypi.org/debian/d ... ackages.gz Hash Sum mismatch
Hashes of expected file:
- Filesize:34000 [weak]
- SHA256:8a65365b24744683c70ddf2fcda1c578f828ba926025ab6c10ce59fa47cadca3
- SHA1:41af19d859e32695d8339a543b5f59c38b750609 [weak]
- MD5Sum:5812a1a530294fc16f102f8ab77df52e [weak]
Hashes of received file:
- SHA256:8192ac0db16c34e710338c6f52018aae9879efbdef3bca00ea3664473dc4bb10
- SHA1:46a2f02882a72a7166ced6556975bdc8831c5983 [weak]
- MD5Sum:2ce2d1cca66fd178cad12672b6220862 [weak]
- Filesize:33996 [weak]
Last modification reported: Thu, 09 Aug 2018 12:16:44 +0000
Release file created at: Thu, 16 Aug 2018 13:06:13 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
I'm seeing this on two separate devices, on old Pi Model B, and a Pi Zero W. Both have ample SD card space. Interestingly, I'd previously done an update on all three of my Pi 3Bs without any problems. While the update is in process, it briefly flashes something about the package/index gpgv - relevant?

awrc
Posts: 4
Joined: Wed Mar 22, 2017 6:10 pm

Re: Bad checksum after apt update

Thu Aug 16, 2018 4:16 pm

Problem seems to have cleared up for me.

Return to “Raspbian”