AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 741410
Accepted
Scott Stensland
Scott Stensland
Asked: 2016-03-03 18:01:43 +0800 CST2016-03-03 18:01:43 +0800 CST 2016-03-03 18:01:43 +0800 CST

跳过获取配置文件“main/binary-i386/Packages”作为存储库“xxx”不支持体系结构“i386”

  • 772

发出以下错误消息:

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'

这跨越了各种版本的 ubuntu

apt
  • 9 9 个回答
  • 260998 Views

9 个回答

  • Voted
  1. Best Answer
    Scott Stensland
    2016-03-03T18:01:43+08:002016-03-03T18:01:43+08:00

    我找到了有问题的仓库(这个目录中的任何谷歌浏览器)

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

    或更一般地说

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

    现在对与上面匹配的每个 repo 文件执行以下操作

    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
    

    解决方案:通过引入 [arch=amd64] 限制为 64 位

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

    根本原因:Google 放弃了对 Linux 上 32 位 Chrome 的支持,在 64 位系统(启用了多架构)中更新 apt 时触发错误……详情请点击此处:http ://www.omgubuntu.co.uk/2016/ 03/修复-无法获取-google-chrome-apt-error-ubuntu

    确认您使用的是 64 位 ubuntu 并启用了多架构问题

    dpkg --print-foreign-architectures
    

    如果它说

    i386
    

    然后您添加了 32 位支持,这将列出您的本机架构...问题

    dpkg --print-architecture 
    

    如果您是本机 64,您将看到此输出,所以上面显示的解决方案

    amd64
    

    这是删除多架构的命令(仅当您没有 32 位应用程序时)

    sudo dpkg --remove-architecture i386
    
    • 448
  2. Eric Mintz
    2018-11-15T16:18:16+08:002018-11-15T16:18:16+08:00

    (这个解决方案适用于 Ubuntu Bionic Beaver)
    首先,让这个问题持续这么久让谷歌感到羞耻!

    以下是解决方法:
    如上所述,在其中编辑文件/etc/apt/sources.list.d似乎可行……但只是暂时的。第二天,问题又来了。

    原因如下:

    该文件/etc/cron.daily/google-earth-pro每天运行并覆盖您在/etc/apt/sources.list.d/google-earth-pro.list.

    要一劳永逸地修复它,请编辑/etc/cron.daily/google-earth-pro.
    找到这一行:

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

    ...并将其更改为:

    REPOCONFIG="deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main"
    
    • 40
  3. Mr Angry
    2018-07-22T05:19:55+08:002018-07-22T05:19:55+08:00

    改变

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

    至

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

    在每个

    • /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

    似乎也解决了 Google Music Manager for Play Music 的问题。由于文件是自动配置的,因此不确定它是否会在某个时候恢复这些更改。

    • 25
  4. pLumo
    2018-05-05T05:36:30+08:002018-05-05T05:36:30+08:00

    尽管 Google 已经为Chrome修复了这个问题,但它仍然出现在例如 Google Earth中。

    添加[arch=amd64]修复了问题,但需要一遍又一遍地添加。

    在按照webupd8 文章的建议使文件不可变并因此遇到问题后,我当前的解决方案是添加一个 cronjob 以每小时自动应用一次修复:

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

    google-earth.list(必要时更换)。

    • 6
  5. Ruchit Dalwadi
    2018-10-30T22:17:50+08:002018-10-30T22:17:50+08:00

    尽管此问题已被标记为已解决,但我无法使用上述任何答案来解决此问题。我使用了另一种方法。转到“软件和更新”> ubuntu 软件 > 下载自 > 选择最佳服务器。现在等待一段时间让系统发现它。完成此操作后,再次尝试您的命令。这对我有用。

    • 4
  6. realtebo
    2020-02-13T07:54:16+08:002020-02-13T07:54:16+08:00

    我加上我的 2 美分。抱歉,如果我有 Debian 10 而不是 Ubuntu,但我的回答是在主题内。

    由于mariadb repo,我遇到了同样的问题。它被添加sources.list为

    deb [arch=amd64,i386,ppc64el] http://ftp.nluug.nl/db/mariadb/repo/10.3/debian buster main
    

    我只是删除i386并ppc64el

    deb [arch=amd64] http://ftp.nluug.nl/db/mariadb/repo/10.3/debian buster main
    
    • 4
  7. David Bodow
    2021-12-30T19:05:50+08:002021-12-30T19:05:50+08:00

    请注意,上述答案为ONE-LINE-STYLE格式.list文件提供了准确的解决方案;但是,verboseDEB822-STYLE FORMAT需要使用完整Architectures选项而不是缩写arch选项来将 repo 的包限制为您想要的架构。

    例如:

    # /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
    

    有关此选项和其他选项的详细信息,请参阅man sources.list

    • 4
  8. Shubhzgang
    2019-04-26T04:13:30+08:002019-04-26T04:13:30+08:00

    即使这个问题被标记为已解决,对我来说,在 Ubuntu 18.04 上,将一行/etc/apt/sources.list从 from 更改deb http://dl.google.com/linux/chrome/deb/ stable main 为deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main.

    没有名为/etc/apt/sources.list.d/google-chrome-unstable.list. 进行相同的更改会/etc/apt/sources.list.d/google-chrome.list给出警告,指出目标包已配置多次。(在sources.list和google-chrome.list)

    • 2
  9. Luis Cordero
    2021-10-09T05:30:16+08:002021-10-09T05:30:16+08:00

    更改我的来源列表

    deb https://download.mono-project.com/repo/ubuntu stable-focal main
    

    至

    deb [arch=amd64] https://download.mono-project.com/repo/ubuntu stable-focal main
    
    • 2

相关问题

  • 如何编写 shell 脚本来安装应用程序列表?

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve