executing any inexistent cli command causes a crash
Bug #1008267 reported by
Carlos Troncoso Phillips
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found |
New
|
Undecided
|
Unassigned |
Bug Description
Output
------------------
$ pip #or any other command not found.
Sorry, command-not-found has crashed! Please file a bug report at:
https:/
Please include the following information with the report:
command-not-found version: 0.2.44
-------------------
To post a comment you must log in.
This happened on a newly installed Ubuntu 12.4. UTF-8". ...... ------- ------- -----
I noticed also a lot of warnings on python and apt-get regarding locale being unset:
--------------
$ sudo apt-get install python-pip
.....
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "es_CL.UTF-8",
LC_ADDRESS = "es_CL.
-------
I decided to reconfigure the locales.
----------------
$ sudo dpkg-reconfigure locales
.....
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset), ------- ------- --
LC_PAPER = "es_CL.UTF-8",
LC_ADDRESS = "es_CL.UTF-8",
LC_MONETARY = "es_CL.UTF-8",
LC_NUMERIC = "es_CL.UTF-8",
LC_TELEPHONE = "es_CL.UTF-8",
LC_MESSAGES = "en_US.UTF-8",
LC_COLLATE = "en_US.UTF-8",
LC_IDENTIFICATION = "es_CL.UTF-8",
LC_MEASUREMENT = "es_CL.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LC_TIME = "es_CL.UTF-8",
LC_NAME = "es_CL.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales...
en_AG.UTF-8... up-to-date
en_AU.UTF-8... up-to-date
en_BW.UTF-8... up-to-date
en_CA.UTF-8... up-to-date
en_DK.UTF-8... up-to-date
en_GB.UTF-8... up-to-date
en_HK.UTF-8... up-to-date
en_IE.UTF-8... up-to-date
en_IN.UTF-8... up-to-date
en_NG.UTF-8... up-to-date
en_NZ.UTF-8... up-to-date
en_PH.UTF-8... up-to-date
en_SG.UTF-8... up-to-date
en_US.UTF-8... up-to-date
en_ZA.UTF-8... up-to-date
en_ZM.UTF-8... up-to-date
en_ZW.UTF-8... up-to-date
Generation complete.
-------
Ehhhh... where is es_CL.UTF-8? DUH!
------- ------- ------- - ------- ------- -
$ sudo locale-gen es_CL.UTF-8
Generating locales...
es_CL.UTF-8... done
Generation complete.
-------
Log out, log in... and no more crashes.YG
THIS IS A WORKAROUND AND SPECIFIC FOR "ES" LOCALES (OR ANY OTHER NOT "EN")
COMMAND-NOT-FOUND SHOULD BE ABLE TO HANDLE NO LOCALE.