daoswald / apt-remove-duplicate-source-entries

Detect and deactivate duplicate Apt source entries (as requested in https://askubuntu.com/a/762815/175814).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Purpose

Detects and interactively deactivates duplicate Apt source entries in /etc/sources.list and /etc/sources.list.d/*.list.

Prerequisites

  • 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 the python3-apt package (or python-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
    

Usage

sudo ./apt-remove-duplicate-source-entries.py

About

Detect and deactivate duplicate Apt source entries (as requested in https://askubuntu.com/a/762815/175814).

License:MIT License


Languages

Language:Python 100.0%