I have a modified sources.list file. Every once in a while, APT downloads an update for it. Since mine is modified, it asks whether I want to overwrite it or keep the old one(default.) Is there a way to force APT to download the latest version so I can let the updated version overwrite the old one?
What commands are you executing exactly? APT never asked me about my source.list file. Why would you want to have yours updated/replaced since you modified it? I don't understand.
Ime not APT but other things. Overwrite means replace what is the same but older & leave everything else.
Maybe this can help : You can pass options to dpkg from apt. Interesting for you would be the option --force-confold. Code: apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade Setting --force-confdef as well makes apt-get still update the config file if it hasn't been edited, while --force-confold will keep edited configuration files without asking. To make this permanent, you can also set these options in your apt.conf file: Dpkg::Options { "--force-confdef"; "--force-confold"; }
Current Debian uses /etc/apt/sources.list.d/ directory as a place for user to keep most of the manual changes.