Is there a command line to find and delete duplicated entries in the
is this possible via synaptic perhaps?
For Ubuntu 12.04
Press Alt + F2 and paste
If you need a command line option, here it is:
The command do this:
For Ubuntu 9.10 - 12.04
There is an app called Y-PPA-Manager which can do that and much more.
You can install it like that from a Terminal:
After that, just start the application an go to the Advanced menu.
Then select "Scan and remove duplicate PPAs" and hit OK.
Install ubuntu-tweak and remove the duplicate entries from there,it will be easy
10.10 and Earlier
Applications > Ubuntu Software Center > Edit > Software Sources > Other Software**
System > Administration > Synaptic Packet Manager > Settings > Repositories**
Select and Remove duplicate entries.
I try to complete the possibilities offered from other users using terminal, since that's what you asked, mainly:
login if you're using a text based install or
Press alt+f2 and digit gnome-terminal if you're using GUI
once there digit
sudo nano /etc/apt/sources.list
(To understand better: in the folder /etc you can find (nearly) all configuration files of your computer and in the apt folder you find the souces.list file that contains all the repositories that apt-get uses to update or install and upgrade software)
edit visually the file removing or commenting with # the duplicated rows.
Press control + x to exit and choose y to save the file n to quit without saving.
Done that check your work with an update:
sudo apt-get update
No, there isn't a single command line to find and delete duplicated entries in the
This is because the suggested command lines, which merely duplicate the function of the much simpler built-in
Duplicate entries reported by
However, it should be noted that