我正在尝试在Ubuntu 16.04上安装MSSQL(建议使用{https://docs.microsoft.com/en-US/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-linux-2017)
但这就是我目前遇到的错误E: Unable to locate package mssql-server
test@test-VirtualBox:~$ wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
OK
test@test-VirtualBox:~$ sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
test@test-VirtualBox:~$ sudo apt-get update
Hit:1 http://pl.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://pl.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://pl.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:5 https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017 xenial InRelease
Reading package lists... Done
test@test-VirtualBox:~$ sudo apt-get install -y mssql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mssql-server
What I'm doing wrong?
我一直在尝试许多unable to locate package *mssql-server* site:github.com
之类的Google查询,但没有什么能真正解决我的问题。
预先感谢
答案 0 :(得分:0)
您可能需要检查虚拟机中安装的Ubuntu是32位还是64位。 mssql-server
的软件包仅是64位的,在32位安装中将被忽略。