linux - apt-get 更新不起作用

标签 linux debian apt-get

我在更新 apt 时遇到问题。

运行时apt-get update

Ign http://dl.google.com stable InRelease
Hit http://ftp.bg.debian.org testing InRelease
Hit http://dl.google.com stable Release.gpg      
Hit http://dl.google.com stable Release          
Hit http://ftp.bg.debian.org testing/main Sources/DiffIndex 
Hit http://ftp.bg.debian.org testing/contrib Sources/DiffIndex
Hit http://ftp.bg.debian.org testing/non-free Sources/DiffIndex
Hit http://ftp.bg.debian.org testing/main armhf Packages/DiffIndex
Hit http://ftp.bg.debian.org testing/contrib armhf Packages/DiffIndex
Hit http://ftp.bg.debian.org testing/non-free armhf Packages/DiffIndex
Hit http://ftp.bg.debian.org testing/main i386 Packages/DiffIndex
Hit http://ftp.bg.debian.org testing/contrib i386 Packages/DiffIndex
Hit http://ftp.bg.debian.org testing/non-free i386 Packages/DiffIndex
Hit http://ftp.bg.debian.org testing/contrib Translation-en/DiffIndex
Hit http://ftp.bg.debian.org testing/main Translation-en/DiffIndex
Hit http://ftp.bg.debian.org testing/non-free Translation-en/DiffIndex
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release       Unable to find expected entry 'main/binary-armhf/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.

我不知道这个 dl.google.com 来自哪里,因为我的 source.list 是:

deb http://ftp.bg.debian.org/debian testing main contrib non-free
deb-src http://ftp.bg.debian.org/debian testing main contrib non-free

提前致谢。

最佳答案

我确实认为您面临的问题是由 /etc/apt/sources.list.d/ 文件夹中的一些错误条目引起的。检查此文件夹并删除与 dl.google.com 相关的所有内容,然后重试,一切都应该正常工作。您可能已经通过 google 的 .deb 包安装了 google-chrome,并且这些条目自动添加到该文件夹​​中。

注意:执行此操作后,您的 google-chrome 将不会收到任何更新,因此对于新版本,您必须使用 dpkg 清除它,然后自行重新下载并重新安装。

关于linux - apt-get 更新不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23631734/

相关文章:

debian - 抱歉,用户 "user"不允许以 root 身份执行 '/usr/bin/apt-get update'

Python:了解 os.system 在 linux 和 freeBSD 上的行为

linux - 以太网驱动程序无法在 linaro 版本 3.1 上运行

linux - 我们是否应该一开始就从 Docker Hub 安装一个 docker 镜像?

tomcat - 如何修复 Debian Wheezy 上缺少的 solr tomcat6 配置?

ubuntu - MariaDB:正在安装 MariaDB:未满足的依赖项,mariadb-server-10.0

c - 如何在服务器线程和客户端线程之间同步?

c - 错误: conflicting types for 'exit' in OS header 'proc.h'

无法在两个进程 Mach 之间发送消息

terminal - zsh : command not found: apt-get