美文网首页
dpkg: error processing package m

dpkg: error processing package m

作者: 夙小叶 | 来源:发表于2022-04-18 20:44 被阅读0次
    2022_04_18_20_33_45.png
    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
    

    Ref


    相关文章

      网友评论

          本文标题:dpkg: error processing package m

          本文链接:https://www.haomeiwen.com/subject/cdfjertx.html