linux - ubuntu 16.04系统如何强制卸载mssql

标签 linux ubuntu apt-get

我尝试了以下命令:

sudo apt-get remove mssql-server

sudo apt-get -f

但我收到以下错误消息:

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).

请告诉一些可行的解决方案

最佳答案

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

您还可以使用 sudo rm -rf/var/opt/mssql/ 删除数据目录。 (每次使用 sudo rm 时都要格外小心,如果指定了错误的路径,可能会删除整个硬盘!)

关于linux - ubuntu 16.04系统如何强制卸载mssql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51941617/

相关文章:

python - 使用 pip 与 apt-get 安装软件包有什么区别?

ubuntu - apt-get install 是否取决于操作系统 (OS) 的内核版本或操作系统的分布?

linux - 如何在Shell脚本中对数组进行硬编码?

linux - 多个awk在同一行打印

c - 尽管文件存在,但 dlopen 返回“未找到文件”

linux - 有关创建 Ubuntu 软件包的 .sh 脚本的一些信息?

python - 修复损坏的Python3.2安装(Ubuntu)

c - linux open调用返回EINVAL的可能原因

php - 在 PHP 中使用 mkdir 的权限被拒绝

python - 如何编写 python 脚本以在 linux mint 中打开应用程序