更新 – 配置mysql-server-5.7时Ubuntu更新停止
作者:互联网
当我使用Ubuntu 16.04 LTS中的软件更新程序更新我的Ubuntu软件和应用程序时,更新在配置mysql-server-5.7时停止(当安装下载的更新时).在详细信息中,我收到此消息:
Setting up mysql-server-5.7 (5.7.12-0ubuntu1.1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
insserv: warning: current start runlevel(s) (empty) of script 'mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script 'mysql' overrides LSB defaults (0 1 6).
请建议一种方法来摆脱这个问题.
解决方法:
问题是在mysql-server配置过程中,mysql服务重新启动.
检查是否启用了mysql服务,否则mysql将无法重启,配置过程失败:
>执行
sudo update-rc.d mysql enable
>如果存在于mysql.override中,请注释’manual’
sudo vi /etc/init/mysql.override
标签:mysql,updates,16-04,update-manager 来源: https://codeday.me/bug/20190808/1618838.html