修复Ubuntu和Linux Mint上的Google Chrome浏览器"无法提取"错误

时间:2020-01-09 10:44:49  来源:igfitidea点击:

在更新Ubuntu或者Linux Mint系统时,我们可能会遇到一个更新错误:

W: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)
E:Some index files failed to download. They have been ignored, or old ones used instead.

修复无法获取http://dl.google.com/linux/chrome/deb/dists/stable/Release

这里的问题是,在默认情况下,在源列表条目中,它期望使用32位软件包。

我们需要在此处更改Google Chrome浏览器的sources.list条目,并明确指示其获取64位软件包。我们可能会问如何修改sources.list。

步骤1:

打开一个终端并使用以下命令:

sudo gedit /etc/apt/sources.list.d/google-chrome.list

这将打开Gedit文本编辑器,我们将看到如下文件:

第2步:

在这里,我们需要做的就是将deb http://dl.google.com/linux/chrome/deb/ stable main替换为以下行:

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

现在看起来应该像这样:

第三步:

保存并关闭文件。现在,使用以下命令再次运行更新:

sudo apt-get update