0

I am using latest Ubuntu version. I'm having 64-bit system. When I run sudo apt-get update I get the below errors at the end of the result.

...
Get:79 http://us.archive.ubuntu.com precise/universe Translation-en [3,341 kB] 
Get:80 http://us.archive.ubuntu.com precise-security/main i386 Packages [848 kB]
Ign http://us.archive.ubuntu.com precise/main Translation-en_IN                
Ign http://us.archive.ubuntu.com precise/multiverse Translation-en_IN          
Ign http://us.archive.ubuntu.com precise/restricted Translation-en_IN          
Ign http://us.archive.ubuntu.com precise/universe Translation-en_IN            
Fetched 30.0 MB in 13min 1s (38.4 kB/s)  
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
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)

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

I am not able to find the mistake I am making.
I am not familiar with this command line. Please someone help me rectifying this.

thanks

Gopi
  • 11
  • 1
  • 5

2 Answers2

0

Regarding the error message, you are facing with two separate problems.

GPG error:

For solving public key problem, run this command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>

in which you should replace with the mentioned public key in the error message which is: 16126D3A3E5C1192.

Google Chrome Source List

This problem, as it is well explained in this answer. For more detail, read the answer.
Meanwhile, since you are using 64-bit system, you can use 64-bit Chrome. So force it to just get updates for 64-bit by running this command:

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

Ubuntu Version

You said you are using latest version of Ubuntu (which should be Wily 15.10). But as it is apparent in the result of the command, you are getting updates for Ubuntu Precise Pangolin (12.04 LTS)

How is this possible?

0
  1. Open a new Terminal window and run the following command:

sudo gedit /etc/apt/sources.list.d/google-chrome.list

  1. In the text file that opens edit the file so that the line reads:

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

The only addition you need to make is entering the [amd64] architecture after ‘deb’ but preceding the ‘http’. Do not edit or replace any other text in this file.

  1. Hit Save. Close the Gedit window.

Now return to the Terminal and refresh your package list by running:

sudo apt-get update The ‘failed to fetch’ APT error should no longer appear.


source