如何禁止更新命令查找 google-chrome 依赖项

How to disallow update command to look for google-chrome dependency

我正在使用 ubuntu 12.04。我正在尝试更新系统,但 google-chrome 模块出现一些错误。

sudo apt-get update 

错误:

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.

有什么办法,我可以删除上面的依赖项,以便我的更新可以 运行 成功,我尝试通过删除 google chrome 使用:

sudo apt-get purge google-chrome-stable 

但错误仍然存​​在。

您可以在 apt 源列表文件中为 google chrome 评论您的更新 link。

  1. cd /etc/apt
  2. sudo grep -rn "google" * 找出包含 google link chrome
  3. 更新的 apt 列表文件
  4. 使用您熟悉的编辑器之一标记这些行。

就我而言,消息如下,

sources.list.d/google-chrome.list:3:deb http://dl.google.com/linux/chrome/deb/ stable main sources.list.d/google-chrome.list.save:3:deb http://dl.google.com/linux/chrome/deb/ stable main