如何修复 Ubuntu 13.04 中被忽略的更新文件?

如何修复 Ubuntu 13.04 中被忽略的更新文件?

当我在终端中运行时sudo apt-get update,我会忽略文件。

这些是什么?我该如何解决它们?

答案1

N: Ignoring directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension  
N: Ignoring file '90rkhunter.before_restore_2013-12-08_17.40.52.459330' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension  
N: Ignoring file '90rkhunter.before_restore_2013-12-08_17.40.36.158263' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension  
N: Ignoring file '99-localepurge.before_restore_2013-12-08_17.40.52.459330'

虽然我无法解释为什么它会发出通知(即N:/etc/apt/apt.conf.d/(忽略它是正确的,发出通知则不正确),但应该相当明显,其他文件被忽略是因为没有正确的文件扩展名,因为它们似乎是备份。删除这些文件应该可以解决问题,如果目录 1 只是因为其中有无效文件而出现,则可能会消除所有通知。

运行以下代码(全部一行)将永久删除这些备份,并希望解决您的问题。

sudo rm -f /etc/apt/apt.conf.d/90rkhunter.before_restore_2013-12-08_17.40.52.459330 /etc/apt/apt.conf.d/90rkhunter.before_restore_2013-12-08_17.40.36.158263 /etc/apt/apt.conf.d/99-localepurge.before_restore_2013-12-08_17.40.52.459330

相关内容