Well, there are a couple of solutions.
If you are using the graphical version, which looks something likes this.
You would need to click Login before updating.
After that, it may work.
The console version works the same. Only, there is no GUI.