Umm what do you mean "everytime"? I'm sitting here and I don't have to...
To install a program, what the computer does is (essentially 1) runs apt-get
on a file you downloaded. As you may know, apt-get
actually has to be sudo apt-get
2.
So any GUI program (like the software centre) that is installing things (using an equivalent of apt-get
) has to become root (done in terminal with sudo
). Somehow, the Software centre has to have root privileges, and it does that by asking you your password. If you install everything in one go, it will only ask once (in fact, every 15 mins I believe).
If you are desperate to stop it, you can run the command sudo software-centre
in terminal and anything you install won't require your password. Make sure you close it when it's done.
You've come over from windows, and on windows you can lower the amount of times you have to type (in UAC setting). This is not possible in Ubuntu because to do what you are evidently wanting to do you have to be sudo. To be sudo, it needs your password.
Whenever you have to change a folder that your don't have write access to (i.e. anything other than /tmp
and /home/USER
) you have to become root, so that it can be modified.
That is why installing needs root (it changes /usr/binand other non-write folders). Adding a new user needs to change
/home` and you don't have write access to that, only read.
This "Annoyance" is one of the reasons why you are highly unlikely to get a virus, or similar! Programs can't just run and destroy stuff.
If you can't cope, go back to windows. Have fun with the antivirus software, and restarts after every updates, and the expensive support, and the awful ui, and the price of the OS. 3
1 I do know that it isn't apt-get, and is just an equivalent, but this is a good way to explain why it needs a password, when windows doesn't
2 Or root by any other means
3 No offence to anyone who prefers all that.
sudo
and you where never prompted for authentication. Most modern Linux distributions (also ubuntu) copied such a mechanism from windows operating systems. This questions looks for me like a frust post. What should one answer to this? – chaos Aug 08 '14 at 16:59