I was trying to uninstall mysql using sudo apt-get --purge remove mysql-server
but getting following 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?
So I prompted to kill all running mysql processes.For this I did ps -ef | grep mysql
and get
root 4473 1 0 17:46 ? 00:00:00 /bin/bash /usr/share/mysql/mysql-systemd-start post
root 4636 3783 0 17:46 pts/6 00:00:00 grep --color=auto mysql
root@viji-Latitude-E5440:~# sudo kill -9 4473
root@viji-Latitude-E5440:~# ps -ef | grep mysql
root 4672 1 0 17:47 ? 00:00:00 /bin/bash /usr/share/mysql/mysql-systemd-start post
root 4745 3783 0 17:47 pts/6 00:00:00 grep --color=auto mysql
I am trying to kill this mysql process but not able to do.
What should I do now?