Issue of dist-upgrade

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

Issue of dist-upgrade

#1

帖子 ysgheping » 2011-06-21 20:03

Hi all,
yesterday, i ran below command and today i could not use sudo, details please see below:

version:
Linux hero-desktop 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux

command i used:
sudo apt-get dist-upgrade

issue :
hero@hero-desktop:~$ sudo apt-get update
[sudo] password for hero:
hero is not in the sudoers file. This incident will be reported.

and i even can not login destop.
can anybody help me out,root account is inactive status.
thanks!
头像
nmsfan
帖子: 18958
注册时间: 2009-10-16 22:46
来自: finland

Re: Issue of dist-upgrade

#2

帖子 nmsfan » 2011-06-21 20:10

首先
su
其次
visudo
将hero添加到文件里
仿照root格式即可
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: Issue of dist-upgrade

#3

帖子 tenzu » 2011-06-21 20:26

1, login in command mode
2, input: sudo EDITOR=nano visudo
3, insert: hero ALL=(ALL) ALL
4, press ctrl+x to save
5, reboot
ysgheping
帖子: 8
注册时间: 2011-06-21 19:50

Re: Issue of dist-upgrade

#4

帖子 ysgheping » 2011-06-21 21:33

Thank very much!
i already get this done.
just like tenzu said, but i used rescue mode.
anyway, thanks for your guy's kindly help.
曲径心田
帖子: 7
注册时间: 2011-12-22 22:28

Re: Issue of dist-upgrade

#5

帖子 曲径心田 » 2011-12-27 14:05

MARK ! Thanks for all !
回复