0

I was updating my ubuntu 12.04 and got few issues. I think something is broken that has to be fixed. Kindly help me to fix the issue when i run update command. I am receiving below errors.

W: There is no public key available for the following key IDs:
1397BC53640DB551

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise/restricted/source/Sources  Hash Sum mismatch

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

1 Answers1

2

Google dropped their support for i386, which is why this error shows up. As I assume you're 64-bit Ubuntu user will notice error that you mentioned already on your question.

For fix, the repository must be specifically set for 64-bit only. To do this, use convenience sed one-liner command, without having to modify file by hand:

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list"

For missing public key problem, you can try adding it back:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1397BC53640DB551

Wrong Sources List Entry or Malformed File For Chrome while using apt-get update

Fix failed to fetch Google Chrome

Liso
  • 15,677