After May update keep on getting "Failed to fetch" error on RPI2

Hi,

osmc@osmc:~$ sudo apt-get update

W: Failed to fetch http://apt.osmc.tv/dists/jessie/main/binary-armhf/PackagesIndex Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

This problem is consistent, already reboot the device.

Appreciate the support.

Post /etc/apt/sources.list

another thing that is worth mentioning.
it’s taking a lot of time to login to the device.
after entering user and password I see this message:
“Updating APT cache. Please be patient.”
and only after 30 seconds I finally receive the prompt:
“osmc@osmc:~$”

osmc@osmc:~$ cat /etc/apt/sources.list
deb Index of /debian jessie main contrib non-free

deb Index of /debian jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free

deb http://apt.osmc.tv jessie main

It looks remarkably similar to the issue in this thread: April Update, Version update problem, through MY OSMC and through SSH commands - #4 by swift88 does it not?

I thought the general feeling was that it’s probably ISP-related.

A hash sum mismatch usually means a partially synced mirror; where as in the other thread re. issues with Virgin users couldn’t connect at all.

I’d suggest trying apt-get update in an hour or so.

The first login is slow because we refresh APT on the first ever SSH connection.
This is because a lot of the time a user then runs apt-get install foo… the package cannot be found and then they start a forum post without having updated the apt cache first.

still not working properly.
I’ve noticed couple of more errors on the way to the hash sum mismatch:

osmc@osmc:~$ sudo apt-get update
Get:1 http://apt.osmc.tv jessie InRelease [4669 B]
Hit http://security.debian.org jessie/updates InRelease
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Hit http://ftp.debian.org jessie Release.gpg
Hit http://ftp.debian.org jessie Release
Get:2 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]
Get:3 http://ftp.debian.org jessie-updates/main armhf Packages/DiffIndex [7900 B]
Hit http://ftp.debian.org jessie-updates/contrib armhf Packages
Get:4 http://ftp.debian.org jessie-updates/non-free armhf Packages/DiffIndex [736 B]
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Get:5 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [2704 B]
Get:6 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Err http://apt.osmc.tv jessie/main armhf Packages

Err http://apt.osmc.tv jessie/main armhf Packages

Hit http://ftp.debian.org jessie/main armhf Packages
Err http://apt.osmc.tv jessie/main armhf Packages

Hit http://ftp.debian.org jessie/contrib armhf Packages
Hit http://ftp.debian.org jessie/non-free armhf Packages
Get:7 http://apt.osmc.tv jessie/main armhf Packages [29.0 kB]
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Ign http://apt.osmc.tv jessie/main Translation-en
Hit http://security.debian.org jessie/updates/main armhf Packages
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Fetched 47.8 kB in 17s (2684 B/s)
W: Failed to fetch http://apt.osmc.tv/dists/jessie/main/binary-armhf/Packages Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

Is your situation materially different from the last time you posted with the same kind of error?

TBH, I had exactly the same errors myself today, but they went away after a 10-minute break and a retry. Persistence might be the key here.

I am getting the same here today. It shows an IP I think 159.253.212.250 so the name resolves to the IP. Something is not right I would say

Does the output of apt-get look the same as what has been posted above?

sudo apt-get update
Hit http://security.debian.org jessie/updates InRelease
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Hit http://ftp.debian.org jessie Release.gpg
Hit http://ftp.debian.org jessie Release
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Get:1 http://ftp.debian.org jessie-updates/main armhf Packages/DiffIndex [7900 B]
Hit http://ftp.debian.org jessie-updates/contrib armhf Packages
Get:2 http://ftp.debian.org jessie-updates/non-free armhf Packages/DiffIndex [736 B]
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main armhf Packages
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Get:3 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [2704 B]
Hit http://security.debian.org jessie/updates/contrib Translation-en
Get:4 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.debian.org jessie/main armhf Packages
Hit http://ftp.debian.org jessie/contrib armhf Packages
Hit http://ftp.debian.org jessie/non-free armhf Packages
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Err http://apt.osmc.tv jessie InRelease

Err http://apt.osmc.tv jessie Release.gpg
Unable to connect to apt.osmc.tv:http:
Fetched 12.1 kB in 2min 0s (100 B/s)
Reading package lists… Done
W: Failed to fetch http://apt.osmc.tv/dists/jessie/InRelease

W: Failed to fetch http://apt.osmc.tv/dists/jessie/Release.gpg Unable to connect to apt.osmc.tv:ht
p:

W: Some index files failed to download. They have been ignored, or old ones used instead.

Okay. That’s a bit different to above.
Try disabling VPN or proxy (if active), reboot, and try again.

Stuck with the internet I have but I think I am on to something here…
Rebooted several times and kept seeing that the confluence skin failed to update . So this last time I did not wait at all, and did immediate ssh and sudo apt-get update and it worked now doing sudo apt-get dist-upgrade.

Maybe something is hosing up the networking or access to internet??? Seems odd that doing it immediately after reboot works.

After apt-get upgrade now I have

E: Failed to fetch http://ftp.debian.org/debian/pool/main/g/glibc/libc6-dev_2.19-18+deb8u9_armhf.deb Hash Sum mismatch

E: Failed to fetch http://ftp.debian.org/debian/pool/main/s/systemd/systemd_215-17+deb8u7_armhf.deb Hash Sum mismatch

E: Failed to fetch http://security.debian.org/pool/updates/main/s/shadow/passwd_4.2-3+deb8u4_armhf.deb Hash Sum mismatch

E: Failed to fetch http://apt.osmc.tv/pool/main/m/mediacenter-addon-osmc/mediacenter-addon-osmc_3.0.647_all.deb Hash Sum mismatch

E: Failed to fetch http://apt.osmc.tv/pool/main/r/rbp2-mediacenter-osmc/rbp2-mediacenter-osmc_17.3.0-2_armhf.deb Hash Sum mismatch

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

You seem to also be getting errors with the official Debian repositories.
Something is up with your connection.

that is the first . Before it was only on apt.osmc.tv

Check your connection if you can.

Connection is fine for everything else . Did a sudo apt-get clean and tried again got
E: Failed to fetch http://security.debian.org/pool/updates/main/p/perl/perl-base_5.20.2-3+deb8u7_armhf.deb Hash Sum mismatch

E: Failed to fetch http://ftp.debian.org/debian/pool/main/s/systemd/systemd_215-17+deb8u7_armhf.deb Hash Sum mismatch

E: Failed to fetch http://ftp.debian.org/debian/pool/main/i/icu/libicu52_52.1-8+deb8u5_armhf.deb Hash Sum mismatch

E: Failed to fetch http://apt.osmc.tv/pool/main/m/mediacenter-addon-osmc/mediacenter-addon-osmc_3.0.647_all.deb Hash Sum mismatch

There is a problem with your connection apparently.

As another thought… You could have a failing SD card, causing the downloaded files to be corrupted. That could be causing the hash sum mismatch.

still having the same issue:

osmc@osmc:~$ sudo apt-get update
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Get:1 http://apt.osmc.tv jessie InRelease [4669 B]
Hit http://ftp.debian.org jessie Release.gpg
Hit http://ftp.debian.org jessie Release
Hit http://security.debian.org jessie/updates InRelease
Get:2 http://ftp.debian.org jessie-updates/main armhf Packages/DiffIndex [7900 B]
Hit http://ftp.debian.org jessie-updates/contrib armhf Packages
Get:3 http://ftp.debian.org jessie-updates/non-free armhf Packages/DiffIndex [736 B]
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Get:4 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]
Get:5 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [2704 B]
Get:6 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Err http://apt.osmc.tv jessie/main armhf Packages

Err http://apt.osmc.tv jessie/main armhf Packages

Err http://apt.osmc.tv jessie/main armhf Packages

Hit http://ftp.debian.org jessie/main armhf Packages
Get:7 http://apt.osmc.tv jessie/main armhf Packages [33.5 kB]
Hit http://ftp.debian.org jessie/contrib armhf Packages
Hit http://ftp.debian.org jessie/non-free armhf Packages
Hit http://ftp.debian.org jessie/contrib Translation-en
Ign http://apt.osmc.tv jessie/main Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Hit http://ftp.debian.org jessie/non-free Translation-en
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://security.debian.org jessie/updates/main armhf Packages
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Fetched 52.3 kB in 19s (2746 B/s)
W: Failed to fetch http://apt.osmc.tv/dists/jessie/main/binary-armhf/Packages Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

as @dillthedog suggested, I will try to plug the SD card to my computer (windows 10) to check for errors.
maybe it will help.

ran the command sudo touch /forcefsck
then reboot, issue resolved.