On a default 14.04.2 server install one can do the following to get around this issue:
****** THE FOLLOWING FAILS ********
$ sudo add-apt-repository --yes ppa:ts.sch.gr/ppa
gpg: keyring `/tmp/tmp72b1dl0x/secring.gpg' created
gpg: keyring `/tmp/tmp72b1dl0x/pubring.gpg' created
gpg: requesting key 03AFA832 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp72b1dl0x/trustdb.gpg: trustdb created
gpg: key 03AFA832: public key "\xce\x91\xcf\x80\xce\xbf\xce\xb8\xce\xb5\xcf\x84\xce\xae\xcf\x81\xce\xb9\xce\xbf \xce\xa4\xce\xb5\xcf\x87\xce\xbd\xce\xb9\xce\xba\xce\xae\xcf\x82 \xce\xa3\xcf\x84\xce\xae\xcf\x81\xce\xb9\xce\xbe\xce\xb7\xcf\x82 \xce\xa3\xce\x95\xce\xa0\xce\x95\xce\x97\xce\xa5" 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 0xce in position 71: ordinal not in range(128)
***** THE FOLLOWING SUCCEEDS *******
$ export LANG=C.UTF-8
$ sudo add-apt-repository --yes ppa:ts.sch.gr
gpg: keyring `/tmp/tmp07_sm4eg/secring.gpg' created
gpg: keyring `/tmp/tmp07_sm4eg/pubring.gpg' created
gpg: requesting key 03AFA832 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp07_sm4eg/trustdb.gpg: trustdb created
gpg: key 03AFA832: public key "Αποθετήριο Τεχνικής Στήριξης ΣΕΠΕΗΥ" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
On a default 14.04.2 server install one can do the following to get around this issue:
****** THE FOLLOWING FAILS ********
$ sudo add-apt-repository --yes ppa:ts.sch.gr/ppa 0x/secring. gpg' created 0x/pubring. gpg' created ubuntu. com x/trustdb. gpg: trustdb created xcf\x80\ xce\xbf\ xce\xb8\ xce\xb5\ xcf\x84\ xce\xae\ xcf\x81\ xce\xb9\ xce\xbf \xce\xa4\ xce\xb5\ xcf\x87\ xce\xbd\ xce\xb9\ xce\xba\ xce\xae\ xcf\x82 \xce\xa3\ xcf\x84\ xce\xae\ xcf\x81\ xce\xb9\ xce\xbe\ xce\xb7\ xcf\x82 \xce\xa3\ xce\x95\ xce\xa0\ xce\x95\ xce\x97\ xce\xa5" imported python3. 4/threading. py", line 920, in _bootstrap_inner python3. 4/threading. py", line 868, in run _target( *self._ args, **self._kwargs) python3/ dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 687, in addkey_func python3/ dist-packages/ softwarepropert ies/ppa. py", line 370, in add_key ppa_signing_ key() python3/ dist-packages/ softwarepropert ies/ppa. py", line 261, in add_ppa_signing_key export_ keyring, signing_ key_fingerprint , tmp_keyring_dir): python3/ dist-packages/ softwarepropert ies/ppa. py", line 210, in _verify_fingerprint fingerprints = self._get_ fingerprints( keyring, keyring_dir) python3/ dist-packages/ softwarepropert ies/ppa. py", line 202, in _get_fingerprints check_output( cmd, universal_ newlines= True) python3. 4/subprocess. py", line 605, in check_output communicate( inputdata, timeout=timeout) python3. 4/subprocess. py", line 936, in communicate retry_call( self.stdout. read) python3. 4/subprocess. py", line 487, in _eintr_retry_call python3. 4/encodings/ ascii.py" , line 26, in decode ascii_decode( input, self.errors)[0]
gpg: keyring `/tmp/tmp72b1dl
gpg: keyring `/tmp/tmp72b1dl
gpg: requesting key 03AFA832 from hkp server keyserver.
gpg: /tmp/tmp72b1dl0
gpg: key 03AFA832: public key "\xce\x91\
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
func(**kwargs)
File "/usr/lib/
return apsk.add_
File "/usr/lib/
tmp_
File "/usr/lib/
got_
File "/usr/lib/
output = subprocess.
File "/usr/lib/
output, unused_err = process.
File "/usr/lib/
stdout = _eintr_
File "/usr/lib/
return func(*args)
File "/usr/lib/
return codecs.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 71: ordinal not in range(128)
***** THE FOLLOWING SUCCEEDS *******
$ export LANG=C.UTF-8 sm4eg/secring. gpg' created sm4eg/pubring. gpg' created ubuntu. com sm4eg/trustdb. gpg: trustdb created
$ sudo add-apt-repository --yes ppa:ts.sch.gr
gpg: keyring `/tmp/tmp07_
gpg: keyring `/tmp/tmp07_
gpg: requesting key 03AFA832 from hkp server keyserver.
gpg: /tmp/tmp07_
gpg: key 03AFA832: public key "Αποθετήριο Τεχνικής Στήριξης ΣΕΠΕΗΥ" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK