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. the error does not bite yet quite a niggle thanks you helped me get rid of it

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

    "You're Good you"
    Robert De Niro.

    ^^

    ReplyDelete