Ubuntu “Starting Administrative Application” 问题解决

【问题描述】一台装有Ubuntu10.04的实验机,平时有多人使用。本人今天在配置web服务器时,需要安装中文语言支持,于是进入System-Administration-Language support,发现在安装中文语言支持时,界面底下出现"Starting Administrative Application"提示,然后几秒钟之后消失了,但是更新并没有进行。重启电脑,问题依旧。尝试打开 Synaptic Package Manager,问题依旧。本来这个时候是应该弹出输入管理员密码的对话框的。
然而通过终端输入sudo apt-get install language-pack-gnome-zh-hans-base language-pack-gnome-zh-hans却可以安装中文语言包,也可以通过gksudo synaptic打开新立得软件包。
 
【问题解决】
1、遇到这个问题,首先是google之。发现ubuntuforums论坛上也蛮多人出现这个问题。
有的人可以通过下面这个方法解决:
Hi all,

after upgrading my laptop to Hardy, all applications that required an administrative password failed to start. A button would appear in the panel, reading "Starting Administrative Application", but a few seconds later it would disappear without prompting me for a password.

 I discovered that this can be fixed directly in the /etc/hosts file, where there should be two lines reading:

 127.0.0.1 localhost
 127.0.1.1 vaio

 where "vaio" is the name of my computer. That solved the problem for me. Kudos to the forum of the Greek Linux Format magazine.

 Alex 

但是我发现我的/etc/host文件是这样的:
127.0.0.1 localhost
127.0.1.1 emos-desktop

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
与上文说到的方法一致,没有需要修改的地方:(
 
2、另外一个方法:
sudo aptitude reinstall gksu 
我按照这个重新安装了gksu,但也是没有解决问题。
 
3、第二步有个蹊跷的地方,其实我无法使用sudo进入root模式,只能用su进入。我是先用su命令进入root模式,然后执行 aptitude reinstall gksu 命令的。
使用sudo出现这样的问题“sudo: must be setuid root”,这时我脑海突然略过一丝想法,该不会就是用户权限的问题导致的吧。安装语言支持、使用新立得软件包管理器都需要管理员权限,就是在需要弹出密码输入框时出现了问题,而这里,在终端中也无法正常使用管理员权限,这两者很可能就是相关联的。
于是,找到了解决sudo问题的办法:
用su进入root模式;
输入如下命令,将自己的用户回入admin和root组中:
usermod -G admin -a username
usermod -G root -a username
使用id命令确认你的用户是否已经加入admin和root中:
id username
此时可以发现,username用户已经包含在admin和root组中。
惊喜的时刻到了,这时发现,一开始的问题已经消失匿迹!

【后记】后面和之前用过这台机器的师弟聊这个问题,他说他之前确实修改过用户的权限和密码,但是没想到会引发这样的问题。。
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值