V
V
Vista2015-06-24 12:36:26
linux
Vista, 2015-06-24 12:36:26

Problem installing mysql on ubuntu?

Hello fellow toasters!!
There was a problem when trying to (re)start mysql on ubuntu.
Tried several commands such as:

sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean

and for reinstallation:
sudo apt-get update
sudo apt-get install mysql-server
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation

the output is an error

E: Could not get lock /var/lib/dpkg/lock - open
(11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/),
is another process using it ?

I try to delete it
sudo rm /var/lib/dpkg/lock
but I still get this error.
How to fix this situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Azazel PW, 2015-06-24
@azazelpw

sudo killall dpkg
or
ps -ax |grep dpkg
will show PID
kill -9 PID

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question