I attach a script that should be able to fix the files and still keep reasonable approximations of the original comments with non-ASCII characters. It assumes that the bad files are using UTF-8 encoding. To use it you should (as root, that is using sudo):
0) Copy recusively /etc/apt/sources.list.d to a safe location
1) Copy the fix-source-list.sh (attached file) to /etc/apt/sources.list.d and chdir there
2) Make it executable
3) run it typing "sudo ./fix-source-list.sh"
4) Delete fix-source-list.sh from /etc/apt/sources.list.d
It will create new version of the *.list files with the non-ASCII characters converted to an ASCII approximation.
Now try "apt-get update", if it works OK, try to edit your sources using software-properties.
If something goes wrong, delete the bad /etc/apt/sources.list.d and copy back the backup you made in step 0 (you did it, right?).
I attach a script that should be able to fix the files and still keep reasonable approximations of the original comments with non-ASCII characters. It assumes that the bad files are using UTF-8 encoding. To use it you should (as root, that is using sudo):
0) Copy recusively /etc/apt/ sources. list.d to a safe location sources. list.d and chdir there list.sh" sources. list.d
1) Copy the fix-source-list.sh (attached file) to /etc/apt/
2) Make it executable
3) run it typing "sudo ./fix-source-
4) Delete fix-source-list.sh from /etc/apt/
It will create new version of the *.list files with the non-ASCII characters converted to an ASCII approximation.
Now try "apt-get update", if it works OK, try to edit your sources using software- properties.
If something goes wrong, delete the bad /etc/apt/ sources. list.d and copy back the backup you made in step 0 (you did it, right?).