I'm getting a Hash sum mismatch
error while upgrading dpkg
.
Following is the complete output:
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
dpkg
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,084 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg amd64 1.18.4ubuntu1.3 [2,084 kB]
Err:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg amd64 1.18.4ubuntu1.3
Hash Sum mismatch
Fetched 2,084 kB in 1s (1,045 kB/s)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.18.4ubuntu1.3_amd64.deb Hash Sum mismatch
I tried running with --fix-missing
but the result was the same:
$ sudo apt-get upgrade --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
dpkg
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,084 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg amd64 1.18.4ubuntu1.3 [2,084 kB]
Err:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg amd64 1.18.4ubuntu1.3
Hash Sum mismatch
Fetched 2,084 kB in 1s (1,913 kB/s)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.18.4ubuntu1.3_amd64.deb Hash Sum mismatch
I tried the solutions suggested in the following two answers:
But to no avail.
Any other solution?
sudo apt-get clean
and start over.sudo apt-get update
?