LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot "sudo apt-get uptate" or "sudo" anything! plz help (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-sudo-apt-get-uptate-or-sudo-anything-plz-help-628463/)

mdguy21061 03-16-2008 01:33 PM

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.

pentode 03-16-2008 01:56 PM

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.

mdguy21061 03-16-2008 02:08 PM

Quote:

Originally Posted by pentode (Post 3090503)
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.



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"

DragonSlayer48DX 03-16-2008 02:11 PM

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

mdguy21061 03-16-2008 02:52 PM

Quote:

Originally Posted by dragonslayer48dx (Post 3090516)
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

The most confusing question with the simplist of answers.thanks man.

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?

Ricio 03-16-2008 03:43 PM

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

chrism01 03-17-2008 01:25 AM

sudo visudo

or

sudo su -
visudo

cafeinoz 04-13-2008 11:59 PM

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.