2012-10-07 02:02, contro opinion skrev:
in my debian ,i can't sudo *update-grub* *,
Can you sudo *anything*? What is the error message?
I will assume you are seeing the message: "not in the sudoers file."
By default, debian does not use sudo to get admin privileges as a user,
but instead changes user to be the root user, as described below.
there is no command update-grub in debian (my system is debian6+grub1.99)
There is, but as a normal user you are not allowed to see that it exists.
bash: update-grub: command not found
If you still can't see it as the root user, that _is_ a problem, and you
should ask again.
how can i do now?
Password: <TYPING THE ROOT PASSWORD>
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.5-trunk-amd64
Found initrd image: /boot/initrd.img-3.5-trunk-amd64
Found linux image: /boot/vmlinuz-3.2.0-3-amd64
Found initrd image: /boot/initrd.img-3.2.0-3-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
No volume groups found
Found memdisk: /boot/memdisk
Imagepath /boot/images not found
Note that the prompt changes from $ to # when I change from user to root.
See <http://wiki.debian.org/sudo> for more info, including the command
for activating sudo for your account: "adduser USERNAME sudo".