Author Topic: [ Solved ] Failed to fetch - Hash Sum mismatch  (Read 5005 times)

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
[ Solved ] Failed to fetch - Hash Sum mismatch
« on: December 10, 2014, 03:28:56 am »
Code: [Select]
Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-i386/Packages  Hash Sum mismatch
Code: [Select]
sudo rm -rf /var/lib/apt/lists/*

Code: [Select]
sudo apt-get update
Code: [Select]
Fetched 19.5 MB in 44s (435 kB/s)                                             
Reading package lists... Done
W: GPG error: http://dl.google.com stable Release: The following signatures were invalid: BADSIG A040830F7FAC5991 Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>

Code: [Select]
http://www.ubuntugeek.com/how-to-fix-the-ubuntu-gpg-error-badsig.html
Code: [Select]
Error Message

W: GPG error: http://archive.canonical.com intrepid Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

Method 1

Try to run the following comamnds from terminal

    $ sudo -i

    # apt-get clean

    # cd /var/lib/apt

    # mv lists lists.old

    # mkdir -p lists/partial

    # apt-get clean

    # apt-get update

Code: [Select]
Fetched 19.5 MB in 24s (801 kB/s)                                             
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-i386/Packages  Hash Sum mismatch

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

Code: [Select]
Method 2

Try to run the following comamnds from terminal

    sudo aptitude -o Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update

    sudo apt-get update

Code: [Select]
Fetched 70.7 kB in 10s (6,726 B/s)                                             
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com stable Release: The following signatures were invalid: BADSIG A040830F7FAC5991 Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release:
W: Some index files failed to download. They have been ignored, or old ones used instead.

Then used Sparky-aptus and then tried synaptic package manager

Code: [Select]
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com stable Release: The following signatures were invalid: BADSIG A040830F7FAC5991 Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release 

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

Solution:

Few minutes ago when I updated package list and clicked on update Synaptic package manager updated google chrome. I installed google chrome deb file from google website yesterday night and then after todays update I keep getting the above problems.

What I did is I went sparky-aptus and edited

Code: [Select]
#deb http://dl.google.com/linux/chrome/deb/ stable main
Added # to the above deb code and the problem was no longer there.

Now, the problem is, how do I update google chrome in the future if this deb code is disabled?
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
Re: [ Solved ] Failed to fetch - Hash Sum mismatch
« Reply #1 on: December 10, 2014, 04:11:16 am »
Solution:

Code: [Select]
http://forums.debian.net/viewtopic.php?f=10&t=80717
Code: [Select]
https://sites.google.com/site/mydebiansourceslist/
Code: [Select]
http://www.google.com/linuxrepositories/
I did this command and the problem got solved.

SOLUTION:

Code: [Select]
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline GeneC

  • Full Member
  • ***
  • Posts: 126
Re: [ Solved ] Failed to fetch - Hash Sum mismatch
« Reply #2 on: December 10, 2014, 03:07:47 pm »
I checked earlier today and found this same issue.. :(
Quote
Failed to fetch - Hash Sum mismatch

However the issue appears to have been fixed in the repo and is no longer there, and google-chrome updated just now with no issues, and having to make no adjustments...
Code: [Select]
Start-Date: 2014-12-10  09:03:36
Commandline: /usr/sbin/synaptic
Upgrade: google-chrome-stable:amd64 (39.0.2171.71-1, 39.0.2171.95-1)
End-Date: 2014-12-10  09:03:46
« Last Edit: December 10, 2014, 03:11:21 pm by GeneC »

Offline rmaijala

  • Newbie
  • *
  • Posts: 6
Re: [ Solved ] Failed to fetch - Hash Sum mismatch
« Reply #3 on: December 18, 2014, 03:07:28 am »
hi, when i recently tried upgrading some packages i got the following error message similar to the one for google chrome

Code: [Select]
Failed to fetch xz:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_testing_main_binary-i386_Packages  Hash Sum mismatch
Some index files failed to download. They have been ignored, or old ones used instead.

this came from synaptic when trying to upgrade lxpanel
similar results yesterday when trying to upgrade "all" via synaptic and apt-get.
any suggestions?

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
Re: [ Solved ] Failed to fetch - Hash Sum mismatch
« Reply #4 on: December 18, 2014, 04:21:00 am »
Code: [Select]
http://forums.debian.net/viewtopic.php?f=10&t=61493#p358341
Quote
I've seen that before, too.

My understanding is that it happens when you try to do an update while the repository itself is in the process of being updated.

Whenever I see that error, I wait an hour or two and then try again, and everything is fine.

Code: [Select]
404 error
Code: [Select]
http://makululinux.webs.com/apps/forums/topics/show/12479100
Quote
404 means those repositories are down. debian repo's sometimes do go down, they can be down for few minutes or few hours, I am sure they are working on the problem right now.

However you can change the mirrors if you do not wish to wait.

in terminal type :

    su
    nano /etc/apt/sources.list

and then everywhere where it says :

    deb http://us.debian.org xxxxxxxxxx


change it to

    deb http://ftp.debian.org/ xxxxxxxxxx

Change just the front part of the url and leave the rest as is.

Then press CTRL+X button to close, Y button to save and overwrite.

then do apt-get update again.

Code: [Select]
Try to run the following comamnds from terminal

    $ sudo -i

    # apt-get clean

    # cd /var/lib/apt

    # mv lists lists.old

    # mkdir -p lists/partial

    # apt-get clean

    # apt-get update
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline rmaijala

  • Newbie
  • *
  • Posts: 6
Re: [ Solved ] Failed to fetch - Hash Sum mismatch
« Reply #5 on: December 18, 2014, 07:48:23 am »
^^^ Yeah it seems to be online now. I found it odd that it was down yesterday during the day and then this morning again. The hash sum mismatch is a strange error message.