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

jkt123
  • 3,530
  • 22
  • 24
user3528144
  • 647
  • 2
  • 8
  • 15

1 Answers1

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
jkt123
  • 3,530
  • 22
  • 24