Comment 4 for bug 161159

Revision history for this message
supernova (hirobo) wrote :

> 1. the specific steps or actions you took that caused you to encounter the problem,
> 3. the behaviour you actually encountered (in as much detail as possible).

ubuntu@ubuntu:~$ LANG=ja_JP.EUC-JP
ubuntu@ubuntu:~$ emacs
??㏍違・??'emacs' ?・札筝?・??宴若吾ц??ゃ??障?:
 * emacs21-nox
 * emacs22-gtk
 * emacs22
 * emacs-snapshot
 * e3
 * emacs-snapshot-nox
 * emacs21
 * emacs22-nox
 * jove
 * ema篏?荅・?・????k
罨<・ : sudo apt-get install <?御?????宴若絃
-bash: emacs: command not found

> 2. the behaviour you expected, and

ubuntu@ubuntu:~$ sudo cp -p /usr/share/pycentral/command-not-found/site-packages/CommandNotFound/CommandNotFound.py{,.orig}
[sudo] password for ubuntu:
ubuntu@ubuntu:~$ sudoedit /usr/share/pycentral/command-not-found/site-packages/CommandNotFound/CommandNotFound.py
ubuntu@ubuntu:~$ diff -u /usr/share/pycentral/command-not-found/site-packages/CommandNotFound/CommandNotFound.py{.orig,}
--- /usr/share/pycentral/command-not-found/site-packages/CommandNotFound/CommandNotFound.py.orig 2007-09-25 18:41:04.000000000 +0900
+++ /usr/share/pycentral/command-not-found/site-packages/CommandNotFound/CommandNotFound.py 2008-02-22 11:02:26.000000000 +0900
@@ -2,7 +2,7 @@
 # Licensed under GPL, see COPYING for the whole text

 import sys, os, os.path, dbm, posix, grp
-from gettext import gettext as _
+from gettext import lgettext as _

 import apt_pkg
 from aptsources.sourceslist import SourcesList
ubuntu@ubuntu:~$ emacs
プログラム 'emacs' は以下のパッケージで見つかりました:
 * emacs21-nox
 * emacs22-gtk
 * emacs22
 * emacs-snapshot
 * e3
 * emacs-snapshot-nox
 * emacs21
 * emacs22-nox
 * jove
 * emacs-snapshot-gtk
次の操作を試してください: sudo apt-get install <選択したパッケージ>
-bash: emacs: command not found