Skip to content

Instantly share code, notes, and snippets.

@teohhanhui
Created January 23, 2015 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teohhanhui/65e395d5595296f6bcc9 to your computer and use it in GitHub Desktop.
Save teohhanhui/65e395d5595296f6bcc9 to your computer and use it in GitHub Desktop.
Salt pkgrepo.managed ppa Unicode error
[INFO ] Running state [php_ppa] at time 04:55:03.932476
[INFO ] Executing state pkgrepo.managed for php_ppa
[INFO ] Executing command 'apt-add-repository -y ppa:ondrej/php5' in director
y '/root'
[DEBUG ] stderr: gpg: keyring `/tmp/tmpasbo0e24/secring.gpg' created
gpg: keyring `/tmp/tmpasbo0e24/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpasbo0e24/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ond\xc5\x99ej Sur???" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py"
, line 687, in addkey_func
func(**kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 370, in
add_key
return apsk.add_ppa_signing_key()
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 261, in
add_ppa_signing_key
tmp_export_keyring, signing_key_fingerprint, tmp_keyring_dir):
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 210, in
_verify_fingerprint
got_fingerprints = self._get_fingerprints(keyring, keyring_dir)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 202, in
_get_fingerprints
output = subprocess.check_output(cmd, universal_newlines=True)
File "/usr/lib/python3.4/subprocess.py", line 605, in check_output
output, unused_err = process.communicate(inputdata, timeout=timeout)
File "/usr/lib/python3.4/subprocess.py", line 936, in communicate
stdout = _eintr_retry_call(self.stdout.read)
File "/usr/lib/python3.4/subprocess.py", line 487, in _eintr_retry_call
return func(*args)
File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 92: ordinal
not in range(128)
[INFO ] Executing command 'apt-get -q update' in directory '/root'
[INFO ] {'repo': 'ppa:ondrej/php5'}
[INFO ] Completed state [php_ppa] at time 04:55:25.893430
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment