Extracting templates from packages: 100%
(Reading database ... 295231 files and directories currently installed.)
Removing msodbcsql17 (17.9.1.1-1) ...
dpkg: error processing package msodbcsql17 (--remove):
installed msodbcsql17 package post-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
Errors were encountered while processing:
msodbcsql17
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
安装 mssql-tools 后,msodbcsql17 多次报错,阻碍安装其他应用程序,无法被删除或删除不完全
⚠️ :这个方法确实可行,但不确定后续会有什么隐患,做好备份,理智使用
sudo apt-get --purge remove mssql-server mssql-server-fts mssql-tools msodbcsql unixodbc-dev
sudo rm -rf /var/opt/mssql/ /opt/{microsoft,mssql-tools,mssql}/ /usr/share/doc/{msodbcsql,mssql-server,mssql-tools}
删除下面文件中,msodbcsql17 / mssql-commn 相关包描述
/var/lib/dpkg/status
网友评论