Re-hi, I made a small fix to the aptsources module (locally on my laptop). Aptsources comes from the python-apt package. $ apt-get source python-apt $ cd python-apt-1.0.1build1/ $ cd aptsources/ # Edit sourceslist.py file. # Add a make_unique(self, l) function to the SourcesList class. # Then call make_unique from the refresh() function. # This will remove duplicate lines while maintaining sort order of the list. Please see: http://paste.ubuntu.com/12973347/ On Mon, Oct 26, 2015 at 3:43 PM, moma