LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 711|回复: 1

fedora 14,麻烦诸位看看我的shell是出什么问题了?输入错误命令不能返回

[复制链接]
发表于 2011-3-26 16:20:10 | 显示全部楼层 |阅读模式
如果我不小心输入了一个不存在的命令,比如 asdfj,shell就输出如下信息,并且一直不能返回了。只能ctrl + c 结束。

# asdfj

Command not found.
** (pk-command-not-found:7095): CRITICAL **: dbus_g_proxy_cancel_call: assertion `pending != NULL' failed

哪位知道这是怎么一回事吗?该如何解决?谢谢!
 楼主| 发表于 2011-3-30 21:42:14 | 显示全部楼层
找到原因了,供诸位参考。

If you get a "command not found" error from bash while updating your system, bash will "hang" while pk-command-not-found is trying to query for a similar command (pk-command-not-found is a handler command ran by bash on FC12 when you try to run a command that does not exist). You can either simply accept this behaviour and wait until yum-based stuff have all exited, or you can instruct PackageKit to not perform this check at all. Even when everything is Working Properly(TM), it still might take a bit of time for the bash to return to prompt after such a query. As such, disabling this may be something you want to do anyways. Change the SoftwareSourceSearch parameter in /etc/PackageKit/CommandNotFound.conf to false:

# sed -i 's/SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表