跳过获取已配置文件’main / binary-i386 / Packages’作为存储库’xxx’不支持架构’i386′

发出时收到以下错误消息:

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

我追踪了违规回购(这个目录中的谷歌镀铬)

 cd /etc/apt/sources.list.d grep chrome * | 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 

根本原因 :谷歌在Linux上删除了对32位Chrome的支持,在64位系统中更新apt时启用了错误(启用了多拱)…详情请访问: http : //www.omgubuntu.co.uk/2016/ 03 /修复失败的到取入谷歌-铬-容易错误Ubuntu的

确认您使用64位ubuntu并启用了multiarch问题

 dpkg --print-foreign-architectures 

如果它说

 i386 

然后你添加了32位支持,这将列出你的原生arch …问题

 dpkg --print-architecture 

如果你是64岁,你会看到这个输出,所以上面显示的是解决方案

 amd64 

更改

 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

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

尽管Google已针对Chrome修复了此问题,但它仍然适用于Google地球

添加[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 )。