我正在尝试安装mariadb
但安装因Mysql
运行失败而退出并且无法停止。
MySql 未安装,但有一个进程正在运行,我无法终止它
root@sonic-ubuntu ~ # ps aux | grep mysql
root 8639 0.0 0.0 9496 2244 pts/0 S+ 08:55 0:00 grep --color=auto mysql
当我尝试杀死它时,它会以不同的 PID 重生,我试图识别启动该过程的内容ptree
,但它没有显示出来。
运行 Ubuntu 15.10
任何帮助均感激不尽。
好的,如果我尝试安装 mariadb,我会得到以下信息
Preparing to unpack .../mariadb-server-10.1_10.1.12+maria-1~wily_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.1_10.1.12+maria-1~wily_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Selecting previously unselected package mariadb-server.
Preparing to unpack .../mariadb-server_10.1.12+maria-1~wily_all.deb ...
Unpacking mariadb-server (10.1.12+maria-1~wily) ...
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-server-10.1_10.1.12+maria-1~wily_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
这表明 mysql 正在运行
是的,但我找不到或阻止它!
答案1
的输出ps aux | grep ...
自然会包含该grep
过程本身:
root 8639 0.0 0.0 9496 2244 pts/0 S+ 08:55 0:00 grep --color=auto mysql
该系统上似乎没有运行 MySQL 实例。