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.
dee flor
  • 21
  • 6
  • `sudo rm -vf /var/lib/apt/lists/*

    sudo apt-get update` Running this did the trick. Got it resolved. Thx @Liso for the Link.

    – dee flor Jan 16 '17 at 12:47

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,377
  • 3
  • 51
  • 80
  • I have executed the those commands.. It was successful. Later when i run update command i am getting below errors code( Ign http://ppa.launchpad.net precise/main Translation-en Reading package lists... Error!
    E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_precise_main_i18n_Translation-en E: The package lists or status file could not be parsed or opened.)
    – dee flor Jan 16 '17 at 07:54
  • Ign http://ppa.launchpad.net precise/main Translation-en Ign http://ppa.launchpad.net precise/main Translation-en_IN Ign http://ppa.launchpad.net precise/main Translation-en Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_precise_main_i18n_Translation-en E: The package lists or status file could not be parsed or opened – dee flor Jan 16 '17 at 07:55
  • You may want to see this for a possible fix, be aware though. – Liso Jan 16 '17 at 07:59
  • Thx @Liso, Link helped to resolve the issue. Now Every thing is working fine!!!! – dee flor Jan 16 '17 at 12:49