UnicodeDecodeError when adding a ppa with add-apt-repository
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
$ sudo add-apt-repository ppa:riccetn/aegisub
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
print "Error reading %s: %s" % (lp_url, e)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 39: ordinal not in range(128)
The repository is added:
$ cat /etc/apt/
deb http://
The key is not:
$ sudo apt-key list
/etc/apt/
-------
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key <email address hidden>
sub 2048g/79164387 2004-09-12
pub 1024D/FBB75451 2004-12-30
uid Ubuntu CD Image Automatic Signing Key <email address hidden>
Works fine in en_US.UTF-8 locale:
$ LC_ALL=en_US.UTF-8 sudo add-apt-repository ppa:riccetn/
gpg: requesting key D7BFC706 from hkp server keyserver.
gpg: key D7BFC706: public key "Launchpad Aegisub PPA by riccetn" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
$ locale
LANG=sv_SE.utf8
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
$ lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04
$ LC_ALL=en_US.UTF-8 apt-cache policy python-
python-
Installed: 0.75.9
Candidate: 0.75.9
Version table:
*** 0.75.9 0
500 http://
100 /var/lib/
My internet connection was a little bit unstable when I did this. The bug may be releted to printing out an localized error message (DNS error or timeout)