[问题已处理]-dpkg- error processing package mysql-server-5.7 --configure
导语:mysql5.7.2x升级到5.7.33的时候报错。直接在bash的下一行 增加。查看其实已经升级成功了。
导语:mysql5.7.2x升级到5.7.33的时候报错
apt install -f
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mysql-server-5.7 (5.7.33-0ubuntu0.16.04.1) …
insserv: warning: script ‘sshd.init’ missing LSB tags and overridesdpkg: error processing package mysql-server-5.7 (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mysql-server-5.7
E: Sub-process /usr/bin/dpkg returned an error code (1)
查看其实已经升级成功了。
通过修改vi /var/lib/dpkg/info/mysql-server-5.7.postinst
直接在bash的下一行 增加exit 0
后再执行dpkg --configure -a
不报错了
参考
https://stackoverflow.com/questions/43446218/dpkg-error-processing-package-mysql-server-dependency-problems?newreg=0f471a108ee8470dba78e3f15d27054b
更多推荐
所有评论(0)