打开网址
https://docs.microsoft.com/zh-cn/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-ver15
按照官网的教程来
以下是我踩的坑
报错: add-apt-repository:找不到命令
运行命令:
sudo apt-get install software-properties-common
又报错aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/stable
解决办法:
运行命令:
sudo deepin-editor /etc/lsb-release
把原来的改成酱紫:
# DISTRIB_ID=Deepin
# DISTRIB_RELEASE="15.11"
# DISTRIB_DESCRIPTION="Deepin 15.11 "
# DISTRIB_CODENAME=stable
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_DESCRIPTION="Ubuntu 16.04.6 LTS"
DISTRIB_CODENAME=trusty
之后:
sudo apt-get install dirmngr
sudo apt-get update
中途又一次运行sudo apt-get install -y mssql-server
时有报错,然后我再次运行sudo apt-get update
就解决了,我也不是很懂为什么…
接下来选择你喜欢的版本:
然后设置密码啥啥啥的就OK了
我差点以为这就结束了,还是怪我太单纯了
包的依赖关系我真的…最后我屈服了
有没有大佬指点一下我… … 哇哇哇… …
既然走到这一步放弃我真的不甘心啊啊啊啊啊
最后去报vs code的大腿了… … …
看了官网教程还是蛮详细的.
来源:CSDN
作者:Brilliant_orange
链接:https://blog.csdn.net/Brilliant_orange/article/details/104299670