Tuesday, October 25, 2011

N: Ignoring File *.save In Directory '/etc/apt/sources.list.d/' As It Has An Invalid Filename Extension

Just recently apt-get update started throwing errors which read:

N: Ignoring file 'google-chrome.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
....

....
....
N: Ignoring file 'google-musicmanager.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension


Looking inside directory  /etc/apt/sources.list.d/  I saw a number of files which ended with .save, which were not there before since my last apt-get update.
Apparently they are some sort of backup files, because the content of file foo.list.save is the same as file foo.list.

Following fix will work and next time you apt-get update these former notices won't be shown :

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


I recently installed software-properties-gtk and update-notifier, and I suspect one of these packages to generate these files with the .save extension.....


8 comments:

  1. Thanks it fixed my problem.I am using crunchbang :D

    ReplyDelete
  2. fantastic !!

    you saved just my night

    regards

    ReplyDelete
  3. Thanks u!!! I was going to kill my computer...

    ReplyDelete
  4. http://www.youtube.com/watch?v=ravi4YtUTxo

    "You're Good you"
    Robert De Niro.

    ^^

    ReplyDelete
  5. I get this whenever i try to run the command.
    Password:
    su: Authentication failure

    ReplyDelete

Note: Only a member of this blog may post a comment.