当我输入错误的命令时,命令就会崩溃:
root@stack1:~# fubar
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:
command-not-found version: 0.3
Python version: 3.4.3 final 0
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
Exception information:
'locale' codec can't decode byte 0xc3 in position 12: Invalid or incomplete multibyte or wide character
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
callback()
File "/usr/lib/command-not-found", line 72, in main
enable_i18n()
File "/usr/lib/command-not-found", line 41, in enable_i18n
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.4/locale.py", line 592, in setlocale
return _setlocale(category, locale)
UnicodeDecodeError: 'locale' codec can't decode byte 0xc3 in position 12: Invalid or incomplete multibyte or wide character我该怎么解决这个问题?
发布于 2016-01-09 05:05:43
很可能是本地化问题。
解决问题的适当步骤包含在错误消息中。在提供的URL上向Ubuntu团队提交一个bug。
发布于 2016-01-09 09:38:21
您的一个.mo文件似乎被损坏了。运行dpkg --list |grep language-pack-并检查安装了哪些地区包,然后用apt-get --reinstal install ...重新安装/更新它们。首先运行apt-get update可能会有帮助。
还检查您的文件系统是否可能出现其他损坏。
https://serverfault.com/questions/747816
复制相似问题