How to forcely uninstall mssql from ubuntu 16.04 system

时间:2018-08-21 04:34:35

标签: linux ubuntu apt-get

I have tried following commands

sudo apt-get remove mssql-server

sudo apt-get -f

but it is telling like this

The following packages have unmet dependencies: mssql-tools : Depends: msodbcsql17 (>= 17.2.0.0) but it is not going to be installed Depends: msodbcsql17 (< 17.3.0.0) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

kindly tell some working solution

1 个答案:

答案 0 :(得分:1)

使用sudo apt-get -f install修复丢失的依赖项,然后执行sudo apt-get remove mssql-server卸载服务器。

您还可以使用sudo rm -rf /var/opt/mssql/删除数据目录。 (请谨慎使用该命令:如果不小心,它将删除所有内容!)