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

Dev Singh. asked, Aug 14 ' 2016

Getting ubuntu error failed to fetch when execute below command.

sudo apt-get update

please suggest why this error is comming.

“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)”

  • ubuntu
  • apt-get
  • error

1 Answers

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

    sudo gedit /etc/apt/sources.list.d/google-chrome.list
    
  2. 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.

To prevent the above change being lost, [arch=amd64] needs to be added to the configuration that generates the file edited above:

  1. run the following command:

    sudo gedit  /opt/google/chrome/cron/google-chrome
    
  2. In the text file that opens search for deb and once again edit the file so that deb http becomes:

    deb [arch=amd64] http
    

Do not edit or replace any other text in this file.

  1. Hit Save. Close the Gedit window.

SourcesHow To Fix The (Annoying) ‘Failed to Fetch’ Chrome apt Error

Leave a Ansewer