Debian throws an error during upgrade, what to do?

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 jessie InRelease
Hit jessie/updates InRelease
Get:1 jessie-updates InRelease [145 kB]
Hit jessie InRelease
Hit wheezy/mysql-5.7 Sources
Ign jessie InRelease
Hit jessie Release.gpg
Hit wheezy/mysql-apt-config amd64 Packages
Hit wheezy/updates/main Sources
Hit wheezy/mysql-5.7 amd64 Packages
Get:2 jessie-updates/main Sources [17.2 kB]
Hit wheezy/updates/main amd64 Packages
Hit jessie/mysql-tools amd64 Packages
Hit wheezy/updates/main Translation-en
Get:3 jessie-updates/main amd64 Packages/DiffIndex [9,868 B]
Hit jessie InRelease
Get:4 jessie-updates/main Translation-en/DiffIndex [3,688 B]
Hit jessie Release
Get:5 jessie-updates/main amd64 2017-12-16-1420.43.pdiff [1,756 B]
Hit wheezy/nginx Sources
Hit jessie/main amd64 Packages
Get:6 jessie-updates/main amd64 2017-12-16-1420.43.pdiff [1,756 B]
Hit jessie/main Sources
Hit wheezy/nginx amd64 Packages
Get:7 jessie/main Translation-en_US [169 B]
Get:8 jessie/main amd64 Packages [6,789 kB]
Get:9 jessie/main Translation-en [169 B]
Get:10 jessie/main Translation-en_US [169 B]
Get:11 jessie/main Translation-en [169 B]
Get:12 jessie/main Translation-en_US [169 B]
Get:13 jessie/main Translation-en [169 B]
Get:14 jessie/main Translation-en_US [169 B]
Get:15 jessie/main Translation-en [169 B]
Get:16 jessie/main Translation-en_US [169 B]
Ign jessie/main Translation-en_US
Get:17 jessie/main Translation-en [169 B]
Ign jessie/main Translation-en
Ign wheezy/nginx Translation-en_US
Ign wheezy/nginx Translation-en
Hit jessie/main Translation-en
Ign wheezy/mysql-5.7 Translation-en_US
Ign wheezy/mysql-5.7 Translation-en
Ign wheezy/mysql-apt-config Translation-en_US
Ign wheezy/mysql-apt-config Translation-en
Ign jessie/mysql-tools Translation-en_US
Ign jessie/mysql-tools Translation-en
Fetched 6,966 kB in 18s (376 kB/s)
W: Failed to fetch Hash Sum mismatch

W: Failed to fetch 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.
June 10th 19 at 14:29
1 answer
June 10th 19 at 14:31
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