問題:
發出以下錯誤消息時出錯:
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中
回答 1:
我跟蹤了有問題的repo ( 在這裡目錄中任何 Google Chrome )
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/fix-failed-to-fetch-google-chrome-apt-error-ubuntu
確認你使用 64位ubuntu啟用multiarch啟用的問題
dpkg --print-foreign-architectures
如果上面寫著
i386
然後你添加了 32位支持,這將列出你的原生拱。 頒發
dpkg --print-architecture
如果你是本機 64,那麼你將看到這個輸出,上面顯示了解決方案
amd64
回答 2:
更改
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
似乎解決了谷歌音樂管理器播放音樂的問題。 不確定是否會在文件自動配置時還原這些更改。
回答 3:
儘管谷歌已經為 Chrome 解決了這個問題,但它仍然出現在 比如 谷歌地球。
添加 [arch=amd64]
解決了問題,但它需要不斷地添加。
在 making webupd8文章建議的文件immutable並進入問題之後,我的當前解決方案是在每小時自動添加一個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
)。
相关文章