gpt4 book ai didi

mysql - 调用-rc.d : could not determine current runlevel

转载 作者:行者123 更新时间:2023-12-04 04:24:11 25 4
gpt4 key购买 nike

在WSL中安装mysql这种问题是什么?

invoke-rc.d: could not determine current runlevel
* Stopping MySQL database server mysqld [ OK ]
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 191: /usr/share/mysql-common/configure-symlinks: No such file or directory
dpkg: error processing package mysql-server-5.7 (--configure):
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
dmesg: read kernel buffer failed: Function not implemented
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10.29) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-serverE: Sub-process /usr/bin/dpkg returned an error code (1)

我在 ubuntu 18.04 版本中运行它,尝试卸载/重新安装但仍然遇到相同的错误。

有时成功但没有要求输入密码,这阻止我使用 heidesql 进行连接

最佳答案

要确定当前运行级别,您可以使用 RUNLEVEL多变的。

如果要在安装期间禁用服务重新配置,请使用以下语法:

RUNLEVEL=1 sudo apt-get install mysql-server-5.7

要手动重新配置包,请运行:
dpkg-reconfigure mysql-server-5.7

关于mysql - 调用-rc.d : could not determine current runlevel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58226147/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com