求助:执行 chkconfig 命令失败,原因不时

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
圣域天子
帖子: 1
注册时间: 2013-05-16 17:21
系统: Ubuntu 12.04

求助:执行 chkconfig 命令失败,原因不时

#1

帖子 圣域天子 » 2014-02-28 19:43

root@ubuntu:/# chkconfig
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.3
Python version: 3.3.2 final 0
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
Exception information:

unsupported locale setting
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
callback()
File "/usr/lib/command-not-found", line 69, in main
enable_i18n()
File "/usr/lib/command-not-found", line 40, in enable_i18n
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.3/locale.py", line 541, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
root@ubuntu:/#


chkconfig 无法用 apt-get 删除或重装
另外还发现 setup, rcconf 也不能使用,显示结果类似。
头像
lilydjwg
论坛版主
帖子: 4258
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 求助:执行 chkconfig 命令失败,原因不时

#2

帖子 lilydjwg » 2014-02-28 20:31

chkconfig 是 rpm 系(CentOS、Red Hat 等)的管理命令。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求助:执行 chkconfig 命令失败,原因不时

#3

帖子 poloshiao » 2014-02-28 20:45

chkconfig
http://manpages.ubuntu.com/manpages/pre ... fig.8.html
chkconfig_11.0-79.1-2_all
chkconfig - enable or disable system services
意思是 chkconfig 指令 來自 chkconfig 套件
需要先安裝 chkconfig 套件
sudo apt-get install chkconfig
才能執行 chkconfig 指令
command-not-found has crashed!
https://bugs.launchpad.net/command-not- ... ug/1013387
command-not-found crashes when my locale is invalid
已經確認爲 bug
還沒看到解決方案
chkconfig 无法用 apt-get 删除或重装
開機 按住 esc 不放 直到 出現開機選單
選擇 第二項 Recovery / 再選 resume / 繼續 登入桌面
sudo apt-get remove chkconfig

sudo apt-get purge chkconfig
看看 行不行
上次由 poloshiao 在 2014-02-28 20:58,总共编辑 3 次。
头像
lilydjwg
论坛版主
帖子: 4258
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 求助:执行 chkconfig 命令失败,原因不时

#4

帖子 lilydjwg » 2014-02-28 20:53

poloshiao 写了:
chkconfig
http://manpages.ubuntu.com/manpages/pre ... fig.8.html
Provided by: chkconfig_11.0-79.1-2_all
chkconfig - enable or disable system services
意思是 chkconfig 指令 來自 chkconfig 套件
需要先安裝 chkconfig 套件
sudo apt-get install chkconfig
才能執行 chkconfig 指令
咦,Ubuntu 也有 chkconfig 命令呀 :-)
回复