帮我安装 MSSQL
错误代码
root@redie:~# apt-get install mssql-server mssql-tools -y
E: Malformed line 1 in source list /etc/apt/sources.list.d/mssql.list (type)
E: The list of sources could not be read.
E: Malformed line 1 in source list /etc/apt/sources.list.d/mssql.list (type)
E: The list of sources could not be read.
根据此说明,您应该
-
首先,在软件包源列表中添加一个Microsoft SQL Server Ubuntu 存储库
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
-
然后更新源列表
sudo apt-get update
-
现在,您可以安装 mssql-server
sudo apt-get install -y mssql-server