Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The following command fails with an error:

$ dpkg -i libmotif*i386.deb
dpkg: error: requested operation requires superuser privilege

How do I become a superuser? I thought I was the superuser?

share|improve this question
Welcome to AskUbuntu! This question here should be what you're looking for. – Oyibo Dec 27 '12 at 21:14

In all Unix systems, including Linux a Superuser is the system user who has all permissions to be able to perform administrative tasks. This can be the user root but this user is diabled in Ubuntu for security reasons.

The Ubuntu way to perform admistrative tasks is to temporarily gain superuser privileges by putting the command sudo (super user do) in front of another command that requires superuser powers:

sudo dpkg -i packagename.deb

Then you will be asked for your password (which is identical to your login password):

[sudo] password for lasse: 

Note that you don't see anything in terminal while typing this passoword (not even asterixes).

Users that are allowed to be administrators on creation of their account are put on a list of sudoers to enable the system to look them up before granting administrative privileges with sudo.

For further reading and alternative ways on how to become superuser or root see:

Please also note that you can seriously harm your system when running a bad command as superuser. Sometimes you will not even be able to repair it. Therefore be careful what you do as superuser, and think twice before you press enter.

share|improve this answer
To run graphical applications (e.g. Gedit), use gksudo rather than sudo - see the explanation in the Ubuntu documentation for the reason - – Clive van Hilten Dec 29 '12 at 9:55

Prefix sudo to your command to be a superuser. Hence, run the following command:

sudo dpkg -i libmotif*i386.deb

Running this command would prompt you for your password. Type the password for your user account and press Enter. You won't see the characters as you type your password (not even asterisks *).

For more information on sudo, read this wonderful ubuntu wiki.

share|improve this answer
+1 for citing the excellent Ubuntu wiki! – Andrea Corbellini Dec 27 '12 at 21:10

Just do this If you are on Ubuntu

naren@kadmin-KCPL190: sudo su

Then you will now be a root user and can do anything

root@kadmin-KCPL190:# dpkg -i libmotif*i386.deb

will work

Be careful. If you set a password for root user then it asks you the same for landing to root.Else it will just make you superuser.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.