cannot "sudo apt-get uptate" or "sudo" anything! plz help
I type in comand "sudo apt-get update" or any other sudo command it prompts for a password. (assuming root password) but, it does not let me enter anypassword, letters or numbers. not anything. just lets me hit enter w/o letting me type in the pass. and, i know I cannot login to root becuase I use GUI/Debian. plz help!
http://img135.imageshack.us/img135/1...shotkx5.th.png heres a link to a screenshot:-------/ thankyou plz help. http://img135.imageshack.us/img135/1...eenshotkx5.png <b><noob></b> p.s. I tried to edit the sudoers file in etc/sudoers with visudo and it will not work, also tried adding myself to the sudoers file via console and that dont work as well. |
To edit sudoers file, you must be logged in as root. The sudo documentation is pretty good - so you might want to check that again.
Just saying "it doesn't work" really does not give us much to go on. Once you're in the sudoers list, when sudo asks for a password, it wants YOUR password, not root. |
Quote:
I know what you mean. I annot login as root. i have read documention stating not to it is a security risk in debian w/gui. When I enter any "sudo" command ex: "sudo apt-get update" it immediatly prompts for a password and it will not let me enter anything at all as a password. i know what password it wants. but it just wont let me input it. this is what it says: "laze@c-68-49-202-172:~$ sudo apt-get update Password: " when i just try "apt-get update" it will say: "laze@c-68-49-202-172:~$ apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (13 Permission denied) E: Unable to lock the list directory" |
If you're referring to the fact that the cursor doesn't move or otherwise 'show' that you've typed anything, type your password anyway and hit Enter. That's how it works. Kinda took me by surprise the first time I used the terminal.
Cheers |
Quote:
BUT I HAVE ANOTHER QUESTION. how do I add myself to the sudoers list? it now says" laze@c-68-49-202-172:~$ "sudo apt-get update Password: laze is not in the sudoers file. This incident will be reported." how do I put myself on the sudoers list? |
theres two ways to get yourself in the sudoers file... one is visudo, and the other is editing the /etc/sudoers file and adding our username there
|
sudo visudo
or sudo su - visudo |
I use ubuntu and it does the same thing. I usually just ignore it and enter the currant users password and press enter.
|
All times are GMT -5. The time now is 03:11 AM. |