How to remove duplicate tracks from Rhythmbox?

It's happened to me a few times...

The easy way to solve this issue is:

  1. Open "Home"
  2. Press Ctrl+h (this will show your hidden files and folders)
  3. Navigate to .local/share/rhythmbox
  4. Delete rhythmdb.xml
  5. Restart Rhythmbox

The rhythmdb.xml file contains the music library info for Rhythmbox, by deleting it, you'll be forcing rhythmbox to re-check the library, thus getting rid of the repeated entries.


Some blogger wrote a GUI tool which automatically removes the duplicate entries from the rhythmbox database (without touching the actual files):

sudo apt-get install python-tk
wget -P /tmp blog.tappir.com/rhythmboxRemoveDuplicates.py
chmod +x /tmp/rhythmboxRemoveDuplicates.py
python /tmp/rhythmboxRemoveDuplicates.py

Reference: http://blog.tappir.com/?p=13