MS SQL Server 2019 安装程序在 Ubuntu 22.04 中失败?
MS SQL Server 2019 setup fails in Ubuntu 22.04?
我尝试在基于 Ubuntu 22.04 的最新 Pop OS 上安装 MS SQL Server 2019 和 2017,但每次安装都失败并输出:
⥂ sudo /opt/mssql/bin/mssql-conf setup 10:04:52 PM
[sudo] password for s:
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) - CPU Core utilization restricted to 20 physical/40 hyperthreaded
7) Enterprise Core (PAID) - CPU Core utilization up to Operating System Maximum
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=2109348&clcid=0x409
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): 6
The license terms for this product can be found in
/usr/share/doc/mssql-server or downloaded from:
https://go.microsoft.com/fwlink/?LinkId=2104294&clcid=0x409
The privacy statement can be viewed at:
https://go.microsoft.com/fwlink/?LinkId=853010&clcid=0x409
Enter the SQL Server system administrator password:
Confirm the SQL Server system administrator password:
The passwords do not match. Please try again.
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 at Sat May 7 22:05:17 2022
The following diagnostic information is available:
Reason: 0x00000001
Signal: SIGSEGV - Segmentation fault (11)
Stack:
IP Function
---------------- --------------------------------------
0000564990454abc <unknown>
0000564990454502 <unknown>
000056499046e786 <unknown>
00005649903f086b <unknown>
00007f1bf840c520 __sigaction+0x50
0000000000000000 <unknown>
0000564990410dce <unknown>
00005649903ecb14 <unknown>
00005649903ec939 <unknown>
Process: 18822 - sqlservr
Thread: 18958 (application thread 0x23c)
Instance Id: d7e2cfde-2371-4427-8e6d-09b10beb04a1
Crash Id: 8f231e6e-9afb-4cf7-90d9-5357ebb2e4cf
Build stamp: 55e9595a94b6d3e7b784228f4a5253e5367473986e2ebc475dd669476db8fd11
Distribution: Pop!_OS 22.04 LTS
Processors: 8
Total Memory: 16618315776 bytes
Timestamp: Sat May 7 22:05:17 2022
Capturing a dump of 18822
Successfully captured dump: /var/opt/mssql/log/core.sqlservr.5_7_2022_22_5_17.18822
Executing: /opt/mssql/bin/handle-crash.sh with parameters
handle-crash.sh
/opt/mssql/bin/sqlservr
18822
/opt/mssql/bin
/var/opt/mssql/log/
d7e2cfde-2371-4427-8e6d-09b10beb04a1
8f231e6e-9afb-4cf7-90d9-5357ebb2e4cf
/var/opt/mssql/log/core.sqlservr.5_7_2022_22_5_17.18822
Pop!_OS 22.04 LTS
Capturing core dump and information to /var/opt/mssql/log...
dmesg: read kernel buffer failed: Operation not permitted
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal' can see all messages.
Pass -q to turn off this notice.
No journal files were opened due to insufficient permissions.
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal' can see all messages.
Pass -q to turn off this notice.
No journal files were opened due to insufficient permissions.
/usr/bin/tail: cannot open '/var/log/syslog' for reading: Permission denied
Sat May 7 10:05:19 PM +06 2022 Capturing program information
Dump already generated: /var/opt/mssql/log/core.sqlservr.5_7_2022_22_5_17.18822, moving to /var/opt/mssql/log/core.sqlservr.18822.temp/core.sqlservr.18822.gdmp
Moving logs to /var/opt/mssql/log/core.sqlservr.18822.temp/log/paldumper-debug.log
Sat May 7 10:05:20 PM +06 2022 Capturing program binaries
Sat May 7 10:05:24 PM +06 2022 Compressing the dump files
Core dump and information are being compressed in the background. When
complete, they can be found in the following location:
/var/opt/mssql/log/core.sqlservr.05_07_2022_22_05_18.18822.tbz2
Initial setup of Microsoft SQL Server failed. Please consult the ERRORLOG
in /var/opt/mssql/log for more information.
这两个版本之前都可以在 21.04 和更早版本中使用(根据我的测试)。我是做错了什么还是 MS SQL 服务器尚未推出对 22.04 的支持?
正如许多人指出的那样,MS SQL 服务器尚不支持 Ubuntu 22.04 LTS。 source(感谢@Larnu 指出)
但是,我在 Ubuntu 22.07 中使用 docker 容器到 运行 MS SQL Server 2017。我想你也可以 运行 2019 版本。只需下载 2019 年的图片即可。
我尝试在基于 Ubuntu 22.04 的最新 Pop OS 上安装 MS SQL Server 2019 和 2017,但每次安装都失败并输出:
⥂ sudo /opt/mssql/bin/mssql-conf setup 10:04:52 PM
[sudo] password for s:
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) - CPU Core utilization restricted to 20 physical/40 hyperthreaded
7) Enterprise Core (PAID) - CPU Core utilization up to Operating System Maximum
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=2109348&clcid=0x409
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): 6
The license terms for this product can be found in
/usr/share/doc/mssql-server or downloaded from:
https://go.microsoft.com/fwlink/?LinkId=2104294&clcid=0x409
The privacy statement can be viewed at:
https://go.microsoft.com/fwlink/?LinkId=853010&clcid=0x409
Enter the SQL Server system administrator password:
Confirm the SQL Server system administrator password:
The passwords do not match. Please try again.
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 at Sat May 7 22:05:17 2022
The following diagnostic information is available:
Reason: 0x00000001
Signal: SIGSEGV - Segmentation fault (11)
Stack:
IP Function
---------------- --------------------------------------
0000564990454abc <unknown>
0000564990454502 <unknown>
000056499046e786 <unknown>
00005649903f086b <unknown>
00007f1bf840c520 __sigaction+0x50
0000000000000000 <unknown>
0000564990410dce <unknown>
00005649903ecb14 <unknown>
00005649903ec939 <unknown>
Process: 18822 - sqlservr
Thread: 18958 (application thread 0x23c)
Instance Id: d7e2cfde-2371-4427-8e6d-09b10beb04a1
Crash Id: 8f231e6e-9afb-4cf7-90d9-5357ebb2e4cf
Build stamp: 55e9595a94b6d3e7b784228f4a5253e5367473986e2ebc475dd669476db8fd11
Distribution: Pop!_OS 22.04 LTS
Processors: 8
Total Memory: 16618315776 bytes
Timestamp: Sat May 7 22:05:17 2022
Capturing a dump of 18822
Successfully captured dump: /var/opt/mssql/log/core.sqlservr.5_7_2022_22_5_17.18822
Executing: /opt/mssql/bin/handle-crash.sh with parameters
handle-crash.sh
/opt/mssql/bin/sqlservr
18822
/opt/mssql/bin
/var/opt/mssql/log/
d7e2cfde-2371-4427-8e6d-09b10beb04a1
8f231e6e-9afb-4cf7-90d9-5357ebb2e4cf
/var/opt/mssql/log/core.sqlservr.5_7_2022_22_5_17.18822
Pop!_OS 22.04 LTS
Capturing core dump and information to /var/opt/mssql/log...
dmesg: read kernel buffer failed: Operation not permitted
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal' can see all messages.
Pass -q to turn off this notice.
No journal files were opened due to insufficient permissions.
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal' can see all messages.
Pass -q to turn off this notice.
No journal files were opened due to insufficient permissions.
/usr/bin/tail: cannot open '/var/log/syslog' for reading: Permission denied
Sat May 7 10:05:19 PM +06 2022 Capturing program information
Dump already generated: /var/opt/mssql/log/core.sqlservr.5_7_2022_22_5_17.18822, moving to /var/opt/mssql/log/core.sqlservr.18822.temp/core.sqlservr.18822.gdmp
Moving logs to /var/opt/mssql/log/core.sqlservr.18822.temp/log/paldumper-debug.log
Sat May 7 10:05:20 PM +06 2022 Capturing program binaries
Sat May 7 10:05:24 PM +06 2022 Compressing the dump files
Core dump and information are being compressed in the background. When
complete, they can be found in the following location:
/var/opt/mssql/log/core.sqlservr.05_07_2022_22_05_18.18822.tbz2
Initial setup of Microsoft SQL Server failed. Please consult the ERRORLOG
in /var/opt/mssql/log for more information.
这两个版本之前都可以在 21.04 和更早版本中使用(根据我的测试)。我是做错了什么还是 MS SQL 服务器尚未推出对 22.04 的支持?
正如许多人指出的那样,MS SQL 服务器尚不支持 Ubuntu 22.04 LTS。 source(感谢@Larnu 指出)
但是,我在 Ubuntu 22.07 中使用 docker 容器到 运行 MS SQL Server 2017。我想你也可以 运行 2019 版本。只需下载 2019 年的图片即可。