今天在阿里云的ubuntu主机上调用一个命令,由于没有该命令,本应该直接提示没有该命令,但是却出现如下报错:
$ setfacl
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
找到的解决方法:(运行以下指令。)
$ 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