升级15.7后,提示mysql-server-5.7尚未配置
Tofloor
poster avatar
NorthWind
deepin
2018-08-22 07:36
Author
正在设置 mysql-server-5.7 (5.7.21-1) ...
update-alternatives: 使用 /etc/mysql/mysql.cnf 来在自动模式中提供 /etc/mysql/my.cnf (my.cnf)
Initialization of mysqld failed: 0
Warning: Unable to start the server. Please restart MySQL and run mysql_upgrade to ensure the database is ready for use.
/var/lib/mysql/ibdata1: 22446
ERROR: Database files are locked. Daemon already running?
Warning: Unable to start the server.
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Tue 2018-08-21 23:25:09 CST; 8ms ago
  Process: 22562 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE)
  Process: 22542 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
dpkg: 处理软件包 mysql-server-5.7 (--configure)时出错:
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
dpkg: 依赖关系问题使得 mysql-server 的配置工作不能继续:
mysql-server 依赖于 mysql-server-5.7;然而:
  软件包 mysql-server-5.7 尚未配置。

dpkg: 处理软件包 mysql-server (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


Reply Favorite View the author
All Replies
avatar
junral
deepin
2018-08-22 10:21
#1
应该是mysql-server的依赖缺少了,可以参考下面链接解决
https://ubuntuforums.org/showthread.php?t=2314346
Reply View the author
avatar
184******70
deepin
2018-08-22 15:49
#2
是老版本的mysql后台还没清理赶紧..kill掉再说..我昨天遇到了..
Reply View the author
avatar
NorthWind
deepin
2018-08-24 00:59
#3
https://bbs.deepin.org/post/167517
是老版本的mysql后台还没清理赶紧..kill掉再说..我昨天遇到了..

kill掉然后要重新安装mysql-server-5.7吗?
Reply View the author
avatar
ouge
deepin
2018-08-26 13:17
#4
https://bbs.deepin.org/post/167517
kill掉然后要重新安装mysql-server-5.7吗?

楼主,这个问题解决了吗,我也碰见了,束手无策啊
Reply View the author
avatar
184******70
deepin
2018-08-26 17:45
#5
https://bbs.deepin.org/post/167517
kill掉然后要重新安装mysql-server-5.7吗?

是啊。。你应该成功了吧?ps auxf | grep mysql,把相关的mysql进程全干掉。。重新安装就不会出错了
Reply View the author
avatar
ouge
deepin
2018-08-26 20:47
#6
https://bbs.deepin.org/post/167517
是啊。。你应该成功了吧?ps auxf | grep mysql,把相关的mysql进程全干掉。。重新安装就不会出错了 ...

哥,还是不行,报同样错5555555555
Reply View the author
avatar
walle
deepin
2018-08-27 16:33
#7
sudo dpkg --force-all -P mysql-server-5.7

强制删除破损的依赖包名
Reply View the author
avatar
mobansou
deepin
2018-08-27 16:45
#8
我安装宝塔后,开机就一个光标 什么错误也没  就是开不起
Reply View the author
avatar
NorthWind
deepin
2018-08-28 06:21
#9
https://bbs.deepin.org/post/167517
是啊。。你应该成功了吧?ps auxf | grep mysql,把相关的mysql进程全干掉。。重新安装就不会出错了 ...

ps auxf|grep mysql列出进程号,然后kill这个号的进程,告诉我没有这个进程。重新ps,发现进程号变了,再kill,又说没有这个进程。真是无可奈何。
Reply View the author
avatar
ttou
deepin
2018-09-18 01:38
#10
这个问题有人解决了吗?
Reply View the author
avatar
156******21
deepin
2018-09-18 02:19
#11
https://bbs.deepin.org/post/167517
我安装宝塔后,开机就一个光标 什么错误也没  就是开不起

宝塔环境会不能正常显示,不要用宝塔安装环境
Reply View the author
avatar
ouge
deepin
2018-09-18 17:55
#12
不用挣扎了,我用 docker pull 官方的 mysql 镜像都跑不了,报错一致,都是权限不足,按照 docker 的原理,用户文件系统是完全隔离的,内核才是共用的,我深度怀疑内核出 bug ,那么那位大佬知道怎么换内核呢?
Reply View the author
avatar
ginnerpeace
deepin
2018-10-23 02:25
#13
https://bbs.deepin.org/post/167517
ps auxf|grep mysql列出进程号,然后kill这个号的进程,告诉我没有这个进程。重新ps,发现进程号变了,再 ...

你看到的应该是ps命令的进程id
Reply View the author
avatar
iceblue
deepin
2018-12-06 05:42
#14
已解决,是mysql的原因,安装mysql 5.6就可以了先卸载文件

sudo rm /var/lib/mysql/ -R

sudo rm /etc/mysql/ -R

sudo apt-get autoremove mysql* --purge
sudo apt-get remove apparmor  

然后安装文件
apt install mysql-server-5.6
Reply View the author