Raspberrypi

リンク集

トラブルシューティング

apt updateしたらHash Sum mismatch

ログとしては

Err:4 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
  Hash Sum mismatch
  Hashes of expected file:
   - Filesize:11662292 [weak]
   - SHA256:b22965abb69cd8d1708f520fae92cfdb0be2bb68172b243269a12379775c4c75
   - SHA1:85c4dfc32f9c9cd759aa94df6be924eef51e8157 [weak]
   - MD5Sum:32f7f0971362df3b0597648e99d85559 [weak]
  Hashes of received file:
   - SHA256:146b199c77df34e5f827f0321d817e0cd504203ab49c86868b589d46df75c1d2
   - SHA1:7ece1a011de8e85a31a515b647ce6175ed095ec1 [weak]
   - MD5Sum:30dc998196cebeae778095495bb4c230 [weak]
   - Filesize:4532857 [weak]
  Last modification reported: Fri, 09 Aug 2019 22:26:29 +0000
  Release file created at: Mon, 12 Aug 2019 04:32:29 +0000
Fetched 4,548 kB in 1min 5s (69.3 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:11662292 [weak]
    - SHA256:b22965abb69cd8d1708f520fae92cfdb0be2bb68172b243269a12379775c4c75
    - SHA1:85c4dfc32f9c9cd759aa94df6be924eef51e8157 [weak]
    - MD5Sum:32f7f0971362df3b0597648e99d85559 [weak]
   Hashes of received file:
    - SHA256:146b199c77df34e5f827f0321d817e0cd504203ab49c86868b589d46df75c1d2
    - SHA1:7ece1a011de8e85a31a515b647ce6175ed095ec1 [weak]
    - MD5Sum:30dc998196cebeae778095495bb4c230 [weak]
    - Filesize:4532857 [weak]
   Last modification reported: Fri, 09 Aug 2019 22:26:29 +0000
   Release file created at: Mon, 12 Aug 2019 04:32:29 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead

これが出たときは

sudo rm -rf /var/lib/apt/lists/*

form: Raspberry Pi 2で apt-get updateがHash Sum mismatchで失敗する