Before I begin, I want to inform you that I just installed Linux Mint 17 and I have no idea what I'm doing.
As you read on the title, I cannot use "sudo"
Whenever I try, the terminal says: "sudo: unable to open /var/lib/sudo/yngum/0: No such file or directory"
When I tried to go to /var/lib/sudo in the actual file, it says that I don't have permission.
Also, can someone teach me how to disable touchpad while typing? It's getting really annoying.
What can I do about this?
Thanks
Unable to use "sudo" [SOLVED]
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Unable to use "sudo" [SOLVED]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Unable to use "sudo"
This is probably a good thing considering your first statement!yngum wrote:Before I begin, I want to inform you that I just installed Linux Mint 17 and I have no idea what I'm doing.
As you read on the title, I cannot use "sudo"
sudo, preceding a command, allows you to run the command as the "super user" aka root. You can do a lot of damage with sudo so it is wise to exercise care in its use... In order to be careful, you have to know at least a little about what you are trying to do...
When you type sudo followed by a command, the system will ask you for a password. Only passwords for administrative users will allow you to "sudo" successfully. When you type the password in a terminal, IT WILL NOT ECHO to (be shown on) the screen and NO CHARACTERS will be shown on the screen... it will look as though you are not typing anything at all - THIS IS NORMAL (hopefully, this information will prevent another thread about why your console is not responding after you type sudo plus a command)...
Regular users do not have permission to anything of any significance on the "system" but they have complete control over everything in their home folder. When you open a terminal (Ctrl + Alt + t or through the menu), it will open in your home folder (/home/username).
Hope this is useful...
Re: Unable to use "sudo"
I figured that out after few moments of trying type my invisible password when I first tried to use the terminal.When you type the password in a terminal, IT WILL NOT ECHO to (be shown on) the screen and NO CHARACTERS will be shown on the screen... it will look as though you are not typing anything at all
So, no, I did typed my password in (correctly, otherwise the terminal will say "Sorry, try agian.") and I am still getting that error.
I'm considering reinstalling the whole thing if I fail to solve this problem in few days.
Thank you for your reply.
Edit: I just tried to open Software Manager from menu, then I got error saying: "Failed to run mintinstall as user root. Unable to copy the user's Xauthorization file" I hope that helps.
Re: Unable to use "sudo"
You might consider reinstalling anyway since if you just installed Mint none of this should be happening to you.
As a last resort look at the permissions of Xauthority:
It should be this:
If it does exist but it's not owned by you:
Change your-user-name to your login user name.
Then make sure it has the correct permissions:
Something like this happens when you use sudo to open a grahical application ( as in "sudo gedit" ) instead of using gksu ( as in "gksu gedit" ).
As a last resort look at the permissions of Xauthority:
Code: Select all
ls -al $HOME/.Xauthority
If it says the file doesn't exist create it:-rw------- your-user-name your-user-name
Code: Select all
touch $HOME/.Xauthority
Code: Select all
sudo chown your-user-name:your-user-name $HOME/.Xauthority
Then make sure it has the correct permissions:
Code: Select all
chmod 0600 $HOME/.Xauthority
Last edited by altair4 on Wed Oct 22, 2014 5:31 pm, edited 2 times in total.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Unable to use "sudo"
Open terminal and copy this into it (copy and paste so you get the spaces in the right place), then hit enter.
Code: Select all
apt-get update
Re: Unable to use "sudo"
I tried the permissions thing and it seems I'm good with it for now.
And for the update, I'm keep getting this:
the length of this sometimes changes. When I try to do it agian, the terminal automatically closes itself.
Also, sometimes the terminal minimize while I'm typing, this might be because of touchpad.
I think I'll reinstall soon and see if that helps, I'll leave this case as sloved for now. If I still have this problem after reinstalling, I'll reopen this post.
Thank you everyone
And for the update, I'm keep getting this:
Code: Select all
Ign http://archive.ubuntu.com trusty InRelease
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://security.ubuntu.com trusty-security Release.gpg
Ign http://extra.linuxmint.com qiana InRelease
Ign http://packages.linuxmint.com qiana InRelease
Ign http://archive.ubuntu.com trusty Release.gpg
Ign http://archive.canonical.com trusty InRelease
Ign http://extra.linuxmint.com qiana Release.gpg
Ign http://security.ubuntu.com trusty-security Release
Ign http://archive.ubuntu.com trusty-updates Release.gpg
Ign http://packages.linuxmint.com qiana Release.gpg
Ign http://archive.canonical.com trusty Release.gpg
Ign http://packages.linuxmint.com qiana Release
Hit http://archive.canonical.com trusty Release
W: Not using locking for read only lock file /var/lib/apt/lists/lock
E: Couldn't create temporary file to work with /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_trusty_Release - mkstemp (30: Read-only file system)
W: Not using locking for read only lock file /var/lib/dpkg/lock
Also, sometimes the terminal minimize while I'm typing, this might be because of touchpad.
I think I'll reinstall soon and see if that helps, I'll leave this case as sloved for now. If I still have this problem after reinstalling, I'll reopen this post.
Thank you everyone