sudo systemctl start mssql-server -- on WSL2 Ubuntu

Ramesh Chandra RC 21 Reputation points

$ sudo systemctl start mssql-server System has not been booted with systemd as init system (PID 1). Can't operate. I installed mssql server by following on WSL2 on Windows 10 pro. Can someone help me resolve this issue.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,865 questions
0 comments No comments
{count} votes

Accepted answer
  1. CathyJi-MSFT 20,981 Reputation points Microsoft Vendor

    Hi @Ramesh Chandra RC ,

    Quote from the blog Dealing with SQL Server on Linux on WSL2,

    I would say you can use your new fresh installed SQL Server instance, but it requires to manually start / stop it because there are no systemctl commands to handle it. A good alternative could be to rely on init scripts and start-stop-daemon wrapped into LSB-compliant init scripts.

    Suggest you read the blog to get the detail steps to resolve the issue.

    If the response is helpful, please click "Accept Answer" and upvote it, thank you.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ramesh Chandra RC 21 Reputation points

    Thank you for the response - I removed mssql packages. I re installed a fresh copy. By following
    I get error at below point.


    0 comments No comments