If you have the same issue I had, you need to open a text editor as root in a terminal:
(ignore random error messages)
then navigate to this file:
I found some random characters at the end of this line:
twhich just needed deleteing. Save the file and off you go.
This has happened to me a couple of times when adding new sources.