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?).

** Attachment added: "Script to fix the files"
   
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1069019/+attachment/3667639/+files/fix-source-list.sh

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1069019

Title:
  [software-properties-gtk] can not delete, enable or modify any
  software source with non-ASCII characters in the comment

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1069019/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to