Public bug reported:

I have a spanish layout on my laptop. When I try to install a PPa with
add-apt-repository crash with a exception, but I change the LANG
variable, it works:

$ sudo add-apt-repository ppa:ubuntu-accomplishments/releases
Está a punto de añadir el siguiente PPA a su sistema:
 Official PPA for Ubuntu Accomplishments releases.
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 162, in <module>
    print _(" More info: %s") % ppa_info["web_link"]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal 
not in range(128)
$ echo $LANG
es_ES.UTF-8
$ LANG=en_US.UTF-8
$ sudo add-apt-repository ppa:ubuntu-accomplishments/releases
You are about to add the following PPA to your system:
 Official PPA for Ubuntu Accomplishments releases.
 More info: https://launchpad.net/~ubuntu-accomplishments/+archive/releases
Press [ENTER] to continue or ctrl-c to cancel adding it

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring 
--secret-keyring /tmp/tmp.mxHzngQLLr --trustdb-name /etc/apt//trustdb.gpg 
--keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg 
--keyserver hkp://keyserver.ubuntu.com:80/ --recv 
0CF552515DE8B5F8F8617A197430FBFDA6BDA9A0
gpg: requesting key A6BDA9A0 from hkp server keyserver.ubuntu.com
gpg: key A6BDA9A0: public key "Launchpad PPA for Ubuntu Accomplishments" 
imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: add-apt-key (not installed)
ProcVersionSignature: Ubuntu 3.4.0-5.11-generic 3.4.0
Uname: Linux 3.4.0-5-generic i686
ApportVersion: 2.2.3-0ubuntu3
Architecture: i386
Date: Mon Jun 18 07:56:46 2012
InstallationMedia:
 
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: add-apt-key
UpgradeStatus: Upgraded to quantal on 2012-06-05 (12 days ago)

** Affects: add-apt-key (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 quantal running-unity

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

Title:
  add-apt-repository crash with UnicodeDecodeError on spanish layout

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/add-apt-key/+bug/1014483/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to