Detects and interactively deactivates duplicate Apt source entries in
/etc/sources.list
and /etc/sources.list.d/*.list
.
-
Python 3.2+ (or Python 2.7+ if you really can't use Python 3)
-
The
aptsources
module. In Debian-based distribution you can find it in thepython3-apt
package (orpython-apt
if you only have Python 2).If you don't have it yet you can install it with:
sudo apt-get install python3-apt
sudo ./apt-remove-duplicate-source-entries.py