답변:
이들은 실제로 Microsoft SQL Server를 제거하는 방법에 대한 매우 잘못된 지침입니다.
SQL Server는 이와 관련된 패키지를 설치합니다.
mssql-server
mssql-server-fts
mssql-tools
msodbcsql
unixodbc-dev
SQL Server를 완전히 제거한다고 가정하면
# Stop the service
systemctl stop mssql-server.service
sudo add-apt-repository --remove "$(curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list)"
# Remove those packages from the system.
sudo apt-get --purge remove mssql-server mssql-server-fts mssql-tools msodbcsql unixodbc-dev
# Delete the SQL Server repositories
sudo rm /etc/apt/sources.list.d/mssql-* /etc/apt/sources.list.d/msprod*
# Remove the Microsoft keys.
apt-key del "BC52 8686 B50D 79E3 39D3 721C EB3E 94AD BE12 29CF"
# Delete the Microsoft created directories
sudo rm -rf /var/opt/mssql/ /opt/{microsoft,mssql-tools,mssql}/ /usr/share/doc/{msodbcsql,mssql-server,mssql-tools}