Debian throws an error during upgrade, what to do?

Hello.
By "fun" I decided to update all packages, update was unprecedented for me error.
Then decided the whole thing upgradet, it just gave an error..
What's the problem?
root@localhost:~# sudo apt-get update
Hit http://repo.mysql.com jessie InRelease
Hit http://security.debian.org jessie/updates InRelease
Get:1 http://ftp.debian.org jessie-updates InRelease [145 kB]
Hit http://nginx.org jessie InRelease
Hit http://repo.mysql.com wheezy/mysql-5.7 Sources
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie Release.gpg
Hit http://repo.mysql.com wheezy/mysql-apt-config amd64 Packages
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://repo.mysql.com wheezy/mysql-5.7 amd64 Packages
Get:2 http://ftp.debian.org jessie-updates/main Sources [17.2 kB]
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://repo.mysql.com jessie/mysql-tools amd64 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en
Get:3 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [9,868 B]
Hit https://packages.sury.org jessie InRelease
Get:4 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3,688 B]
Hit http://ftp.debian.org jessie Release
Get:5 http://ftp.debian.org jessie-updates/main amd64 2017-12-16-1420.43.pdiff [1,756 B]
Hit http://nginx.org wheezy/nginx Sources
Hit https://packages.sury.org jessie/main amd64 Packages
Get:6 http://ftp.debian.org jessie-updates/main amd64 2017-12-16-1420.43.pdiff [1,756 B]
Hit http://ftp.debian.org jessie/main Sources
Hit http://nginx.org wheezy/nginx amd64 Packages
Get:7 https://packages.sury.org jessie/main Translation-en_US [169 B]
Get:8 http://ftp.debian.org jessie/main amd64 Packages [6,789 kB]
Get:9 https://packages.sury.org jessie/main Translation-en [169 B]
Get:10 https://packages.sury.org jessie/main Translation-en_US [169 B]
Get:11 https://packages.sury.org jessie/main Translation-en [169 B]
Get:12 https://packages.sury.org jessie/main Translation-en_US [169 B]
Get:13 https://packages.sury.org jessie/main Translation-en [169 B]
Get:14 https://packages.sury.org jessie/main Translation-en_US [169 B]
Get:15 https://packages.sury.org jessie/main Translation-en [169 B]
Get:16 https://packages.sury.org jessie/main Translation-en_US [169 B]
Ign https://packages.sury.org jessie/main Translation-en_US
Get:17 https://packages.sury.org jessie/main Translation-en [169 B]
Ign https://packages.sury.org jessie/main Translation-en
Ign http://nginx.org wheezy/nginx Translation-en_US
Ign http://nginx.org wheezy/nginx Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Ign http://repo.mysql.com wheezy/mysql-5.7 Translation-en_US
Ign http://repo.mysql.com wheezy/mysql-5.7 Translation-en
Ign http://repo.mysql.com wheezy/mysql-apt-config Translation-en_US
Ign http://repo.mysql.com wheezy/mysql-apt-config Translation-en
Ign http://repo.mysql.com jessie/mysql-tools Translation-en_US
Ign http://repo.mysql.com jessie/mysql-tools Translation-en
Fetched 6,966 kB in 18s (376 kB/s)
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie/main/source/Sources Hash Sum mismatch

W: Failed to fetch http://ftp.debian.org/debian/dists/jessie/main/i18n/Translation-en Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@localhost:~# sudo apt-get upgrade
Reading package lists... Error!
E: Unable to synchronize mmap - msync (5: Input/output error)
E: The package lists or status file could not be parsed or opened.
root@localhost:~#
June 10th 19 at 14:29
1 answer
June 10th 19 at 14:31
Solution
the problem with the sync hashes of installed/available packages, it happens mostly when a problem with the disk during the upgrade (quite rare thing). try to send the server to reboot, after which
apt-get clean
apt-get update
apt-get upgrade

if the error persists, check the disk smonitrovannoe
sudo fsck -y-f-v /dev/sda1
/dev/sda1 is the mounted partition, you may differ
helped though? tell - audrey_Kautz commented on June 10th 19 at 14:34
no , well maybe Yes, but I have no
Not me really, as it turned out.
As the server was a test - I had to reinstall the OS, after reinstallation there are even more errors.
But this is a caring host, because the idea is that I rolled back the system to the factory - eveline21 commented on June 10th 19 at 14:37

Find more questions by tags Debian