【问题标题】:Cannot successfully Install mysql-server in WSL无法在 WSL 中成功安装 mysql-server
【发布时间】:2019-10-03 15:19:47
【问题描述】:

尝试在wsl上安装mysql-server但得到以下结果:

Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.27-0ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mysql-server-5.7 (5.7.27-0ubuntu0.16.04.1) ...
invoke-rc.d: could not determine current runlevel
 * Stopping MySQL database server mysqld                                                                                                                                                                                              [ OK ]
/var/lib/dpkg/info/mysql-server-5.7.postinst: line 143: /usr/share/mysql-common/configure-symlinks: No such file or directory
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 1
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
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

【问题讨论】:

    标签: mysql windows-subsystem-for-linux


    【解决方案1】:

    我能够使用 WSL 2 安装 MySQL(必须加入 Windows Insider Program 才能安装它)。见https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

    【讨论】:

      猜你喜欢
      • 2019-08-03
      • 2020-01-02
      • 2023-01-03
      • 1970-01-01
      • 2018-09-08
      • 2017-11-13
      • 2017-12-07
      • 2018-05-03
      • 2015-11-26
      相关资源
      最近更新 更多