[Bug 1069019] Re: [software-properties-gtk] can not delete, enable or modify any software source with non-ASCII characters in the comment
Paulo J. S. Silva
pjssilva at gmail.com
Mon May 6 23:55:06 UTC 2013
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
Foundations Bugs, which is subscribed to software-properties in 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
Status in “software-properties” package in Ubuntu:
Triaged
Bug description:
I've tried to reenable PPA's after upgrading the system, so there is
no reaction on delete button and no any changes after modifying data
via modify dialog. I can't even enable a source.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: software-properties-gtk 0.92.9
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic i686
ApportVersion: 2.6.1-0ubuntu4
Architecture: i386
Date: Sat Oct 20 16:07:59 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=ru_RU.UTF-8
SHELL=/bin/bash
SourcePackage: software-properties
UpgradeStatus: Upgraded to quantal on 2012-10-19 (1 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1069019/+subscriptions
More information about the foundations-bugs
mailing list