Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'xxx' doesn't support architecture 'i386'

253,199

Solution 1

I tracked down offending repo (any for Google chrome in this dir)

cd /etc/apt/sources.list.d
grep chrome * | grep -v amd64

or more generally

grep -r google  /etc/apt | grep -v amd64 

Now do same as below for each repo file which matches above

cat /etc/apt/sources.list.d/google-chrome-unstable.list

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/chrome/deb/ stable main

SOLUTION : limit to just 64 bit by introducing the [arch=amd64]

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

ROOT CAUSE : Google dropped support for 32-bit Chrome on Linux triggering an error when updating apt in 64-bit systems (with multi arch enabled) ... details here : http://www.omgubuntu.co.uk/2016/03/fix-failed-to-fetch-google-chrome-apt-error-ubuntu

To confirm you are using 64 bit ubuntu with multiarch enabled issue

dpkg --print-foreign-architectures

if it says

i386

then you have added 32 bit support, this will list your native arch ... issue

dpkg --print-architecture 

if you are native 64 you will see this output so do SOLUTION shown above

amd64

Here is the command to remove multi architecture ( only if you have no 32 bit applications )

sudo dpkg --remove-architecture i386

Solution 2

(this solution is for Ubuntu Bionic Beaver)
First, shame on Google for letting this issue linger so long!!

Here's how to fix it:
As already mentioned above, editing files in /etc/apt/sources.list.d seems to work... but only temporarily. The next day, the problem is back.

Here's why:

The file /etc/cron.daily/google-earth-pro runs daily and overwrites what you have in /etc/apt/sources.list.d/google-earth-pro.list.

To fix it once and for all, edit /etc/cron.daily/google-earth-pro.
Find this line:

REPOCONFIG="deb http://dl.google.com/linux/earth/deb/ stable main"

...and change it to:

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

Solution 3

Changing

deb http://dl.google.com/linux/chrome/deb/ stable main

to

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

in each of

  • /etc/apt/sources.list.d/google-musicmanager.list
  • /etc/apt/sources.list.d/google-musicmanager.list.save
  • /etc/apt/sources.list.d/google-musicmanager.list.distUpgrade

seems to fix the issue for Google Music Manager for Play Music too. Not sure if it will revert these changes at some point as the files are automatically configured.

Solution 4

Although Google has fixed this issue for Chrome, it still appears for e.g. Google Earth.

Adding [arch=amd64] fixes the issue, but it needs to be added over and over again.

After making the file immutable as proposed by a webupd8 article and running into issues because of that, my current solution is to add a cronjob to apply the fix automatically once every hour:

~$ sudo crontab -e

0 * * * * sed -i 's/^deb http/deb [arch=amd64] http/' /etc/apt/sources.list.d/google-earth.list

(Replace google-earth.list if necessary).

Solution 5

Note that the above answers give accurate solutions for the ONE-LINE-STYLE format .list files; however, the verbose DEB822-STYLE FORMAT needs to use the full Architectures option instead of the abbreviated arch option to restrict the repo's packages to your desired architecture.

For example:

# /etc/apt/sources.list.d/apache-arrow.sources


Types: deb deb-src
URIs: https://apache.jfrog.io/artifactory/arrow/ubuntu/
Suites: focal
Components: main
Signed-By: /usr/share/keyrings/apache-arrow-apt-source.gpg
Architectures: amd64

Details on this option and others can be found with man sources.list

Share:
253,199

Related videos on Youtube

Scott Stensland
Author by

Scott Stensland

Updated on September 18, 2022

Comments

  • Scott Stensland
    Scott Stensland over 1 year

    Getting below error message while issuing :

    sudo apt-get update
    
    Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [95.8 kB]
    Ign:2 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 InRelease                                                                                                            
    Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                         
    Hit:4 http://ppa.launchpad.net/canonical-x/vulkan/ubuntu xenial InRelease                                                                                                
    Hit:5 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 Release                                                                            
    Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease                                                  
    Ign:7 http://dl.google.com/linux/talkplugin/deb stable InRelease                                                     
    Hit:8 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                   
    Ign:9 http://linux.dropbox.com/ubuntu wily InRelease                                           
    Hit:10 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease                              
    Get:12 http://dl.google.com/linux/chrome/deb stable Release [782 B]      
    Hit:13 http://dl.google.com/linux/talkplugin/deb stable Release                  
    Ign:14 https://apt.dockerproject.org/repo ubuntu-wily InRelease          
    Hit:15 https://apt.dockerproject.org/repo ubuntu-wily Release            
    Get:16 http://dl.google.com/linux/chrome/deb stable Release.gpg [181 B]  
    Hit:17 http://linux.dropbox.com/ubuntu wily Release                                  
    Get:20 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,191 B]
    Fetched 98.0 kB in 0s (118 kB/s)                                 
    Reading package lists... Done
    N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'
    

    This cuts across various releases of ubuntu

    • Gunnar Hjalmarsson
      Gunnar Hjalmarsson about 8 years
      @Pilot6 (and others who voted for this question being off-topic): This is not specific to a particular Ubuntu version. It affects all users of Google Chrome on Ubuntu who have the Chrome repository enabled.
    • guntbert
      guntbert about 8 years
      Chrome repository?
    • Gunnar Hjalmarsson
      Gunnar Hjalmarsson about 8 years
      @guntbert: I referred to Google's repository from where the updates are fetched.
    • muru
      muru about 8 years
      @GunnarHjalmarsson what's the point of re-opening, since it's a dupe of askubuntu.com/questions/724093/… anyway?
    • Gunnar Hjalmarsson
      Gunnar Hjalmarsson about 8 years
      @muru: Wasn't aware of that extensive answer to the other question. But then this is a duplicate, and not off-topic. OTOH, I guess it's useful to keep a question with the wording of the error message in the title, expecially since it shows up also on 64 bits installs.
    • Murmel
      Murmel about 8 years
      I can't see, why this should be a duplicate of the mentioned question. The source of the problem is the same, but the context is different (64 vs 32 bit).
    • Michael Scheper
      Michael Scheper over 3 years
      @muru: Pasting the error message into Google just brought me here, and since I've already up-voted it, it's apparently not the first time. Whatever technicalities people may bring up about the validity of this question, it's obviously useful for many people… 194 and counting, at this point.
    • muru
      muru over 3 years
      @MichaelScheper that is irrelevant, since you would have gotten redirected to the dupe otherwise.
    • Gwyneth Llewelyn
      Gwyneth Llewelyn about 2 years
  • sebpardo
    sebpardo about 6 years
    This answer works very well (thank you!), however the file that needs to be edited (in your example /etc/apt/sources.list.d/google-chrome-unstable.list) is automatically configured on a regular basis, so the fix is written over and needs to be added over and over again. Any suggestions to overcome this?
  • Jonathan
    Jonathan almost 6 years
    Out of curiosity what keeps changing this file? In my experience, apt sources files don't get changed by themselves
  • Martin Dorey
    Martin Dorey almost 6 years
    Sergio Rus reckons that Google eventually fixed it for Chrome such that your one-time change would be preserved over updates.
  • catch23
    catch23 over 5 years
    for me file to change was /etc/apt/sources.list.d/google.list
  • musicformellons
    musicformellons over 5 years
    This worked for me as well! Nice!
  • Ruchit Dalwadi
    Ruchit Dalwadi over 5 years
    Glad to know :)
  • JayDin
    JayDin over 5 years
    For immediate change for Google Earth, it might be worth editing the files google-earth-pro.list and google-earth-pro.list.save.
  • Andor Kiss
    Andor Kiss about 5 years
    The line to change would be at LINE 24
  • Simon Fontana Oscarsson
    Simon Fontana Oscarsson about 5 years
    Thank you. [arch=amd64] solved my problem with virtualbox 6.0
  • Andor Kiss
    Andor Kiss about 5 years
    Interesting, I did this AND the sources file still gets re-written.
  • Colin 't Hart
    Colin 't Hart almost 5 years
    @AndorKiss Yes, that's what this cron job is doing. That's why this answer is here.
  • Ferroao
    Ferroao over 4 years
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost.
  • noobninja
    noobninja over 4 years
    /etc/apt/sources.list.d/google.list covers google-chrome-stable, google-chrome-beta and google-chrome-unstable. cat /opt/google/chrome-beta/cron/google-chrome-beta | grep "REPOCONFIG=". cat /opt/google/chrome-unstable/cron/google-chrome-unstable | grep "REPOCONFIG=". All three point to stable.
  • Eugen Konkov
    Eugen Konkov over 2 years
    How to list i386 architectures?
  • Max
    Max over 2 years
    I love the thoroughness of this answer. Good work. Thank you.
  • Admin
    Admin almost 2 years
    @EugenKonkov dpkg --get-selections | grep 386 might help