帮我安装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.
最佳答案
根据this instruction,您应该
首先,在包来源列表中添加一个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
关于sql-server - Ubuntu 16-04上的mssql,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50643271/