Mssql-docker: Failed to install fts in 2017-latest-ubuntu

Created on 13 Feb 2019  路  2Comments  路  Source: microsoft/mssql-docker

Running docker on Windows machine and used " docker pull mcr.microsoft.com/mssql/server:2017-latest-ubuntu" to get the image. then

tried to install fts on the container (https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-full-text-search?view=sql-server-2017)

root@7ab599da0d97:/# apt-get install -y mssql-server-fts
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mssql-server-fts

Is this document dated? or linux docker is not working?

Most helpful comment

Hi,

You need to import the public repository GPG keys and register the Microsoft Ubuntu repository first. Try this.

apt-get update
apt-get install -y curl

curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list | tee /etc/apt/sources.list.d/mssql-server.list

apt-get update
apt-get install -y mssql-server-fts

All 2 comments

Hi,

You need to import the public repository GPG keys and register the Microsoft Ubuntu repository first. Try this.

apt-get update
apt-get install -y curl

curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list | tee /etc/apt/sources.list.d/mssql-server.list

apt-get update
apt-get install -y mssql-server-fts

it works. Thanks!

Was this page helpful?
0 / 5 - 0 ratings