Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
N: Ignoring file 'cloudera.list_' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'opera.list_' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
...
N: Ignoring file 'tor.list_' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

How to properly "comment out" files there?

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted
cat >> /etc/apt/apt.conf.d/98ignore_extensions << \EOF
# Follow the pattern to add more extensions to ignore.
Dir::Ignore-Files-Silently:: "\.gz$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.distUpgrade$";
Dir::Ignore-Files-Silently:: "\.list_$";
EOF
share|improve this answer
    
Hello and welcome to superuser. Although this will answer the question, would you mind to explain it a little bit more? –  nixda Jan 14 '13 at 18:38
add comment

I just move the files to ../sources.list.disabled/.

share|improve this answer
    
But mv tor.list{_,} looks nicer than mv ../source.list{.disabled,}/tor.list –  Vi. Jan 19 '11 at 16:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.