お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2009-10-22 02:46:33

London
新しいメンバ
登録日: 2009-10-22

Ubuntu 9.04 Remix のcommand-not-foundがクラッシュする

はじめまして

タイトルの件なのですが、Ubuntuの端末で以下の手順を実行すると
command-not-foundがクラッシュします。
現在、インストールしているPCが1台だけなので他の環境やバージョンの確認ができていませんが
これは、既知の問題なのでしょうか?

再現方法
1.端末を起動する
2.スーパーユーザになる
3.LANGをCに設定する
4.存在しないコマンドを実行する

上記手順を実行すると以下のメッセージが出力されます
-----------------------------------------------------------------------------------------------------
# hoge <=これを実行してます
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/ubuntu/+source/command-not-found
Please include the following information with the report:

command-not-found version: 0.2.21
Python version: 2.6.2 final 0
Distributor ID:    Ubuntu
Description:    Ubuntu 9.04
Release:    9.04
Codename:    jaunty
Exception information:

'ascii' codec can't encode characters in position 7-11: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/CommandNotFound/util.py", line 32, in crash_guard
    callback()
  File "/usr/lib/command-not-found", line 15, in main
    parser = OptionParser(version = __version__, usage=_("%prog [options] <command-name>"))
  File "/usr/lib/python2.6/gettext.py", line 584, in lgettext
    return ldgettext(_current_domain, message)
  File "/usr/lib/python2.6/gettext.py", line 556, in ldgettext
    return t.lgettext(message)
  File "/usr/lib/python2.6/gettext.py", line 366, in lgettext
    return tmsg.encode(locale.getpreferredencoding())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-11: ordinal not in range(128)
bash: hoge: command not found
root@Aurora:/home/lambda# ./hoge
bash: ./hoge: Permission denied
#
-----------------------------------------------------------------------------------------------------

PCの環境は
ThinkPad X61
メモリ2G * 2

Ubuntu 9.04 Remix
になります。

どなたかご存知の方がいらっしゃったらよろしくお願いいたします。

オフライン

 

#2 2009-10-22 03:17:44

hir0
メンバ
登録日: 2008-09-28

Re: Ubuntu 9.04 Remix のcommand-not-foundがクラッシュする

This bug was fixed in the package command-not-found - 0.2.36ubuntu1

$ sudo apt-get update
$ sudo apt-get upgrade

でどうでしょうか。

オフライン

 

#3 2009-10-23 14:06:42

London
新しいメンバ
登録日: 2009-10-22

Re: Ubuntu 9.04 Remix のcommand-not-foundがクラッシュする

hir0 による投稿:

This bug was fixed in the package command-not-found - 0.2.36ubuntu1

$ sudo apt-get update
$ sudo apt-get upgrade

でどうでしょうか。

hir0さん お返事が遅れてすみません。

上記コマンドを su - してから実施してみましたがパッケージは更新されませんでした

# dpkg -l | grep command-not
ii  command-not-found                          0.2.34ubuntu3                             Suggest installation of packages in interact
ii  command-not-found-data                     0.2.34ubuntu3                             Set of data files for command-not-found.

どうやら、 0.2.36ubuntu1はまだおすすめ版(?)ではなさそうでですね。
偶然発見した問題で実害はあまり無いので更新対象になるのを気長に待つことにします。

hir0さん、ご回答有難うございました。

P.S
一応、[システム]-[システム管理]-[アップデート・マネージャ]から[再チェック]、出てきた更新をインストールも実行してみましたが変わりませんでした。
お知らせまでに。

オフライン

 

#4 2009-10-23 16:34:25

pores_n
メンバ
登録日: 2008-03-13

Re: Ubuntu 9.04 Remix のcommand-not-foundがクラッシュする

hir0さんが書かれているとおり、このバグのことでしょう。
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/282446

London による投稿:

どうやら、 0.2.36ubuntu1はまだおすすめ版(?)ではなさそうでですね。
偶然発見した問題で実害はあまり無いので更新対象になるのを気長に待つことにします。

9.10では現在0.2.38ubuntu4というこの不具合が解消されたバージョンが使われています。
9.04では重大なバグというわけではなさそうですし、バージョンアップはないかと思います。

オフライン

 

#5 2009-10-24 00:07:08

London
新しいメンバ
登録日: 2009-10-22

Re: Ubuntu 9.04 Remix のcommand-not-foundがクラッシュする

pores_n による投稿:

9.10では現在0.2.38ubuntu4というこの不具合が解消されたバージョンが使われています。
9.04では重大なバグというわけではなさそうですし、バージョンアップはないかと思います。

pores_nさん、情報ありがとうございます。

9.04はクリーンインストールで入れたので
9.10が出たらアップデートにチャレンジしてみます。

オフライン

 

#6 2009-10-24 00:10:47

hir0
メンバ
登録日: 2008-09-28

Re: Ubuntu 9.04 Remix のcommand-not-foundがクラッシュする

pores_nさん、フォローありがとうございます。

オフライン

 

Board footer

Powered by FluxBB