【问题标题】:apt-get update not workingapt-get 更新不起作用
【发布时间】:2017-09-06 07:28:14
【问题描述】:

我在更新 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

提前致谢。

【问题讨论】:

  • 你在使用树莓派吗?
  • 不,Debian x86。 Linux debian 3.11.6-031106-generic #201310181453 SMP Fri Oct 18 19:02:28 UTC 2013 i686 GNU/Linux
  • 那就无视吧,是arm包失败了
  • 检查 /etc/apt/sources.list.d/ 中提到 dl.google.com 的文件。
  • 不过,这并不是一个真正的编程问题。这属于超级用户或 Unix&Linux ...

标签: linux debian apt-get


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

    试试这些步骤:

    Go to Applications -> 'ubuntu software center'
    Click on Edit -> Software Sources
    Click on 'Other software' tab
    Uncheck the line containing 'http://dl.google.com/linux'
    Press Close
    Exit 'ubuntu software center'
    Retry apt-get update on command-line
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-31
      • 2019-01-15
      • 2023-01-17
      • 2023-02-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多