最近新装的Ubuntu 12.04下,会碰到这个问题,输入命令会报出下面这个错误,导致很多命令都没法执行,后来查得,可能是语言的问题,安装的时候选了中文,有可能是此原因导致。

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.2.44

如图:

[记录]Ubuntu Sorry, command-not-found has crashed...问题解决办法

解决办法

按条输入以下命令即可:

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales

OK,再试试,解决。