Problems with installed packages on raspberry (Grafana can't be installed ...)

Hi,
I have tried to install Grafavan, but it seems can’t installed of “corrupted” packages

So I try:

.# apt-get update =>


Err:10 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
Hash Sum mismatch
Hashes of expected file:
- Filesize:11661232 [weak]
- SHA256:872a0594cfde88dc2e9faff85142b819075783235b852e5fce4481b9541a9c18
- SHA1:6c9ac423582e01630483db440578b433e37518a5 [weak]
- MD5Sum:9c0be47387d39c24c9c6a81cacd3a116 [weak]
Hashes of received file:
- SHA256:a025492445a596c26671e072cba3f48a2fc5574d47f2ef9f203b9759f178d393
- SHA1:b1aef276945307ec4617790d24d0ede3a7b8ef36 [weak]
- MD5Sum:ee6f948160a136be558fcddc0400d3cd [weak]
- Filesize:11661232 [weak]

Than I try:
.# apt-get update --fix-missing =>


E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/main/binary-armhf/Packages.xz Hash Sum mismatch
_ Hashes of expected file:_
_ - Filesize:11661232 [weak]_
_ - SHA256:872a0594cfde88dc2e9faff85142b819075783235b852e5fce4481b9541a9c18_
_ - SHA1:6c9ac423582e01630483db440578b433e37518a5 [weak]_
_ - MD5Sum:9c0be47387d39c24c9c6a81cacd3a116 [weak]_
_ Hashes of received file:_
_ - SHA256:7ae8a5e53a91930c80e263108c75ee0126dbd71607b73da572923bd0004e38f1_
_ - SHA1:fb771279d6f7296b058b42fb6dbf32292ba90727 [weak]_
_ - MD5Sum:10f5e14ba57ce3ddb715f84407cb9ca8 [weak]_
_ - Filesize:11661232 [weak]_
_ Last modification reported: Fri, 18 Jan 2019 04:35:39 +0000_
_ Release file created at: Fri, 18 Jan 2019 04:38:22 +0000_
E: Some index files failed to download. They have been ignored, or old ones used instead.

Has anyone an idea how to solve these problems my installation seems to have?
The Raspberry is connected with WLAn to my router, can this cause a problem (maybe bad/slow connection; but regulary it works)

I’d give it a day or so and try again. Either there is something wrong with your network connection (unlikely), or the file at http://raspbian.raspberrypi.org/raspbian/dists/stretch/main/binary-armhf/Packages.xz is corrupted in which case this is a raspbian issue, not your issue.

The error is saying that the hash doesn’t match the file meaning that someone modified the file without updating the hash which proves that the file you downloaded is actually the file it claims to be.

Thx Rich (again!) for your answer,
I hope “wait” will be the solution, but can’t believe so :frowning:

Basically I want to install Gravana (influxdb is already installed), and try to download on the Raspberry:
.#wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_5.3.4_armhf.deb

This results in lot of entries like:

2019-01-18 18:55:58 (283 KB/s) - Read error at byte 7979712/27059330 (Decryption has failed.). Retrying.

Go to the grafana website and follow the apt install instructions. They have changed the repository location recently.

I will do, but I get an error while:

.# apt-get update !

How can i fix this?

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:11661232 [weak]
    - SHA256:872a0594cfde88dc2e9faff85142b819075783235b852e5fce4481b9541a9c18
    - SHA1:6c9ac423582e01630483db440578b433e37518a5 [weak]
    - MD5Sum:9c0be47387d39c24c9c6a81cacd3a116 [weak]
   Hashes of received file:
    - SHA256:eac3ad8f84a5da811f2f334c0373977f4df0de7d516bd104da5f1825dc690e15
    - SHA1:5035ffc7a7dc15f667410b996290d0b06eeaf235 [weak]
    - MD5Sum:f53d60afb4723e4791e55fcbe2be4c16 [weak]
    - Filesize:11661232 [weak]
   Last modification reported: Fri, 18 Jan 2019 04:35:39 +0000
   Release file created at: Fri, 18 Jan 2019 04:38:22 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

You can’t this a corrupt download
Try again

Try that too:
sudo apt update

This results in same behavior:

.# apt update

...
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/main/binary-armhf/Packages.xz  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:11661232 [weak]
...
    - Filesize:11661232 [weak]
   Last modification reported: Sat, 19 Jan 2019 04:33:50 +0000
   Release file created at: Sat, 19 Jan 2019 04:35:59 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
...

That’s nothing to do with you.
That’s the raspberry fundation’s fault. You’ll have to wait until they fixed it. Or you can ask them directly. This has nothing to do with openHAB.

1 Like

OK, so I will wait.

The root problem was that the ftp copy from the grafana package file was corrupted (size was correct), but the hash was bad. First I find to update the packages (apt update), and this went wrong.
So I had two different problems:

  • raspberry fundation fault
  • corrupted grafana package file

Now I copy the grafana package file with winscp from my PC to the Raspi and check the hash, now the hash is fine and the install was running well!