1

I installed mysql server and want to install the mysql client using following code:

apt-get install mysql-client

but I got following error message:

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

It looks like the file locked and permission, if it is the case, it does not ask me for a password.

Your help and information is great appreciated.

Regards,

Inung

2
  • Why didn't you use software center? Apr 22, 2014 at 0:34
  • it works now, after I reboot the computer, for some reason, computer locked the file to install client, Apr 22, 2014 at 1:08

1 Answer 1

6

You need to use sudo to run apt-get. You can install the mysql client with:

sudo apt-get update
sudo apt-get install mysql-client

Not the answer you're looking for? Browse other questions tagged .