几天前,我在更新中注意到此错误消息:
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)
其实解决办法很简单,在[arch=amd64]
后面添加deb
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
在文件中
/etc/apt/sources.list.d/google-chrome.list
但每次重新启动后(我不知道确切的时刻)它就会消失,知道如何永久修复它吗?
答案1
根据webupd8_修复无法获取(阅读更新),编辑以下两个文件:
/etc/apt/sources.list.d/google-chrome.list
将第 3 行更改为:
deb http://dl.google.com/linux/chrome/deb/ stable main
到:
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
编辑/opt/google/chrome/cron/google-chrome
将 REPOCONFIG 和 SSLREPOCONFIG 更改为:
REPOCONFIG="deb http://dl.google.com/linux/chrome/deb/ stable main"
SSLREPOCONFIG="deb https://dl.google.com/linux/chrome/deb/ stable main"
到:
REPOCONFIG="deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
SSLREPOCONFIG="deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main"