在WSL中配置SQL Server时出错

时间:2017-11-11 05:17:35

标签: sql-server ubuntu windows-subsystem-for-linux

Windows 10:版本1709(OS Build 16299.19)

WSL:Ubuntu 16.04

遵循指南here。运行sudo /opt/mssql/bin/mssql-conf setup

时,我在步骤4中收到错误消息
➜  x git:(master) ✗ sudo /opt/mssql/bin/mssql-conf setup
[sudo] password for devlin:
Locale en_GB not supported. Using en_US.
Choose an edition of SQL Server:
  1) Evaluation (free, no production use rights, 180-day limit)
  2) Developer (free, no production use rights)
  3) Express (free)
  4) Web (PAID)
  5) Standard (PAID)
  6) Enterprise (PAID)
  7) Enterprise Core (PAID)
  8) I bought a license through a retail sales channel and have a product key to enter.

Details about editions can be found at
https://go.microsoft.com/fwlink/?LinkId=852748

Use of PAID editions of this software requires separate licensing through a
Microsoft Volume Licensing program.
By choosing a PAID edition, you are verifying that you have the appropriate
number of licenses in place to install and run this software.

Enter your edition(1-8): 2
The license terms for this product can be found in
/usr/share/doc/mssql-server or downloaded from:
https://go.microsoft.com/fwlink/?LinkId=855862

The privacy statement can be viewed at:
https://go.microsoft.com/fwlink/?LinkId=853010


Choose the language for SQL Server:
(1) English
(2) Deutsch
(3) Español
(4) Français
(5) Italiano
(6) 日本語語
(7) 한국어어
(8) Português
(9) Русский
(10) 中文 – 简体体
(11) 中文 (繁体))
Enter Option 1-11: 1
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: 00007f15f48346e3 00007f15f41e76ba 00007f15f17e73dd
      Process: 2186 - sqlservr
       Thread: 2187
  Instance Id: 5b1c8da3-1358-48d3-a563-25468ff2ab69
     Crash Id: 577efbb6-5740-4ee5-92f6-0ddc0eea685f
  Build stamp: 1fdc73777d57c7c1942f388381b8f6ac2c50f005e35b808c23f54dfecdf59384
*********** PANIC CORE DUMP GENERATION FAILED **********
Attempt to launch handle-crash.sh failed with error 0x0000000C
/opt/mssql/lib/mssql-conf/invokesqlservr.sh: line 15:  2185 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.

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:1)

来自此文档:Install SQL Server and create a database on Ubuntu

  

此时,不支持Windows for Linux for Windows 10子系统作为安装目标。

因此不支持您的安装