帮酷LOGO
0 0 评论
  • 显示原文与译文双语对照的内容
文章标签:ext  lis  DIR  列表  文件  

问题:

升级 13.10至 14.04以后,每次安装,更新,升级等都会收到这些烦人的消息:


N: Ignoring file 'webupd8team-java-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension 


N: Ignoring file 'bumblebee-stable-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension 


N: Ignoring file 'steam.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension


N: Ignoring file 'ubuntu-x-swat-x-updates-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension


N: Ignoring file 'xorg-edgers-ppa-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension


N: Ignoring file 'webupd8team-java-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension


N: Ignoring file 'bumblebee-stable-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension


N: Ignoring file 'steam.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension


N: Ignoring file 'ubuntu-x-swat-x-updates-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension


N: Ignoring file 'xorg-edgers-ppa-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension



我如何修复消息中所告诉的潜在问题?

编辑:有时,我会在上面的消息中附加附加信息:


W: GPG error: http://www.duinsoft.nl debs Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E18CE6625CB26B26


W: Failed to fetch http://ppa.launchpad.net/person/ppa/ubuntu/dists/karmic/main/binary-amd64/Packages 404 Not Found



W: Failed to fetch http://ppa.launchpad.net/person/ppa/ubuntu/dists/karmic/main/binary-i386/Packages 404 Not Found



E: Some index files failed to download. They have been ignored, or old ones used instead.



有时,我可能会其他人,但我无法找到精确的消息。


回答 1:

要修复你的第一个问题,请在终端中运行:


sudo rm/etc/apt/sources.list.d/*.disable



( 当你禁用PPAs时,包管理工具的旧版本将这些文件保留。 移除它们是相当安全

你的第二个问题来自和老的业力仓库。 要查找在终端中运行这里操作的用户:


cd/etc/apt



grep -rw karmic *



一旦知道了它来自哪个库,就很容易禁用/删除它。


回答 2:

你应该尝试以下命令:


sudo sh -c"echo 'Dir::Ignore-Files-Silently::"(.save|.distupgrade)$";'>/etc/apt/apt.conf.d/99ignoresave"




回答 3:

我在Ubuntu配合 15.04中有一个类似的问题。 后


sudo sh -c"echo 'deb http://apt.postgresql.org/pub/repos/apt/precise-pgdg main'>/etc/apt/sources.list.d/pgdg.list"




wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -




sudo apt-get update



我收到了一条消息:


N: Ignoring file 'pgdg.listwget' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension



我解决了这个问题:


sudo mv/etc/apt/sources.list.d/pgdg.listwget/etc/apt/sources.list.d/pgdg.list




回答 4:

对于我来说,它在/etc/apt/sources.list./目录中给 *.save 文件提供消息。 我删除了它们现在只有 *.list 文件存在。 而且这些警告。


回答 5:

我们还可以像这样修复这里问题:


sudo mv/etc/apt/sources.list.d/webupd8team-java-raring.list.disable/etc/apt/sources.list.d/webupd8team-java-raring.list



这只适用于单个文件。




文章标签:文件  ext  lis  DIR  列表  

Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语