Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
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
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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .