Cloud-config can not add PPAs with international text in their description

Bug #932415 reported by Jason Dusek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Try:

#cloud-config
locale: en_US.UTF-8
apt_sources:
- source: 'ppa:ferramroberto/java'

This fails silently. Inserting debugging, we find the shell out to add-apt-repository fails with:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 82, in <module>
    print " %s" % (ppa_info["description"] or "")
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 99: ordinal not in range(128)

Tags: i18n
Revision history for this message
Scott Moser (smoser) wrote :

Jason,
 I just ran this on a precise (alpha-2) instance, and it seems to have gone fine:

$ ec2metadata --user-data
#cloud-config
locale: en_US.UTF-8
apt_sources:
 - source: 'ppa:ferramroberto/java'

$ cat /etc/apt/sources.list.d/ferramroberto-java-precise.list
deb http://ppa.launchpad.net/ferramroberto/java/ubuntu precise main
deb-src http://ppa.launchpad.net/ferramroberto/java/ubuntu precise main

That ppa does not have precise packages at the moment.

Has the ppa maybe been modified to work around this ?
What release/ami did you use ?

Changed in cloud-init (Ubuntu):
status: New → Incomplete
Revision history for this message
Jason Dusek (solidsnack) wrote :

I was using ami-bbf539d2. Tried ami-bf62a9d6 just now and the matter is resolved.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cloud-init (Ubuntu) because there has been no activity for 60 days.]

Changed in cloud-init (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.