简体   繁体   English

适用于 Linux 的 Windows 子系统:安装 MSSQL Server 时出错

[英]Windows Subsystem for Linux: Error while installing MSSQL Server

I've just downloaded and installed Microsoft SQL Server into my WSL environment.我刚刚将 Microsoft SQL Server 下载并安装到我的 WSL 环境中。 Everything went smoothly as I ran sudo /opt/mssql/bin/mssql-conf setup .当我运行sudo /opt/mssql/bin/mssql-conf setup一切都很顺利。 I was prompted for the install version (eg Developer), install Language, and administrator password.系统提示我输入安装版本(例如开发人员)、安装语言和管理员密码。 When prompted to confirm, this happens:当提示确认时,会发生这种情况:

    Enter the SQL Server system administrator password:
Confirm the SQL Server system administrator password:
Configuring SQL Server...

This program has encountered a fatal error and cannot continue running.
The following diagnostic information is available:

       Reason: 0x00000003
      Message: fd != -1
   Stacktrace: 00007fda0c625833 00007fda0bfe76ba 00007fda095e682d
      Process: 397 - sqlservr
       Thread: 398
  Instance Id: 211a9fac-1061-47f2-8548-ab92a985561c
     Crash Id: e0ebf051-c561-4c3e-9162-e4fdf862b85f
  Build stamp: 33abe47c18f6a90a4d4f4d452a4549c8fd970e1c89a3d9170ba3b0292bc485a5
Multiple crashes have occurred
This program has encountered a fatal error and cannot continue running.
The following diagnostic information is available:

       Reason: 0x00000003
      Message: fd != -1
   Stacktrace: 00007fda0c625a0c 00007fda0bfe76ba 00007fda095e682d
      Process: 399 - sqlservr
       Thread: 401
  Instance Id: 211a9fac-1061-47f2-8548-ab92a985561c
     Crash Id: e0ebf051-c561-4c3e-9162-e4fdf862b85f
  Build stamp: 33abe47c18f6a90a4d4f4d452a4549c8fd970e1c89a3d9170ba3b0292bc485a5
*********** PANIC CORE DUMP GENERATION FAILED **********
Attempt to launch handle-crash.sh failed with error 0x0000000C
/opt/mssql/lib/mssql-conf/invokesqlservr.sh: line 15:   396 Aborted                 (core dumped) sudo -EH -u mssql /bin/bash -c "$CMDLINE"
Failed to connect to bus: No such file or directory
Attempting to start the Microsoft SQL Server service failed.

So the configuration of the install fails (every time) and the service won't run.因此安装配置失败(每次)并且服务将无法运行。 Has anyone else encountered this problem?有没有其他人遇到过这个问题? There is virtually nothing on Google about this, which is the reason I'm trying SO.谷歌上几乎没有这方面的内容,这就是我尝试 SO 的原因。

At this time, the Windows Subsystem for Linux for Windows 10 is not supported as an installation target for MSSQL-Server.目前,不支持将适用于 Windows 10 的适用于 Linux 的 Windows 子系统作为 MSSQL-Server 的安装目标。

Source: https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu来源: https : //docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM