当我输错一个命令时,找不到命令崩溃:
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
我该如何解决?
很可能是一个本地化问题。
错误消息中包含解决您的问题的适当方法。 在提供的URL处提供Ubuntu团队的错误。
其中一个.mo文件似乎已损坏。 运行dpkg --list |grep language-pack-并检查哪些语言环境软件包已安装,然后使用apt-get --reinstal install ...重新安装/更新它们。 首先运行apt-get update可能会有所帮助。
另外检查您的文件系统可能的其他损坏。