试图安装最新的PHP5包,所以我添加了回购(
sudo add-apt-repository ppa:ondrej / php5)我需要,这就是结果:
Traceback (most recent call last):
File "/usr/lib/python3.2/threading.py", line 740, in _bootstrap_inner
self.run()
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 141, in run
self.add_ppa_signing_key(self.ppa_path)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in add_ppa_signing_key
tmp_export_keyring, signing_key_fingerprint, tmp_keyring_dir):
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 186, in _verify_fingerprint
got_fingerprints = self._get_fingerprints(keyring, keyring_dir)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 178, in _get_fingerprints
output = subprocess.check_output(cmd, universal_newlines=True)
File "/usr/lib/python3.2/subprocess.py", line 516, in check_output
output, unused_err = process.communicate()
File "/usr/lib/python3.2/subprocess.py", line 811, in communicate
stdout = _eintr_retry_call(self.stdout.read)
File "/usr/lib/python3.2/subprocess.py", line 456, in _eintr_retry_call
return func(*args)
File "/usr/lib/python3.2/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)
在Ubuntu 12.04服务器上运行
解决方法:
软件属性 – 常见问题是错误的,所以如果有时间,请将此报告为软件属性 – 常见错误.
在the issue tracker中指出了一种更好的解决方法,它在添加存储库时使用特定的unicode语言环境
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php5-5.6