美文网首页
阿里云ecs卸载mariadb时的error

阿里云ecs卸载mariadb时的error

作者: hubery_zhao | 来源:发表于2021-03-02 10:35 被阅读0次

    今天在阿里云新建了一个测试机器centos7.6,用来安装mysql做测试,需要先卸载mariadb,遇到了以下的报错,应该很多同学都有遇到这样的错误,简单记录下卸载过程。

    1. 查看机器是否安装Mariadb
    [root@test data]# rpm -qa |grep  mariadb
    mariadb-libs-5.5.60-1.el7_5.x86_64
    
    1. 卸载mariadb出现如下报错
    [root@test data]# rpm -e mariadb-libs-5.5.60-1.el7_5.x86_64
    error: Failed dependencies:
        libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64
        libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64
    

    还有依赖关系,先卸载这些依赖关系

    1. 卸载postfix-2:2.10.1-7.el7.x86_64
      卸载postfix-2:2.10.1-7.el7.x86_64 又出现error
    [root@test data]# rpm -e postfix-2:2.10.1-7.el7.x86_64
    error: Failed dependencies:
        /usr/sbin/sendmail is needed by (installed) redhat-lsb-core-4.1-27.el7.centos.1.x86_64
    
    1. 卸载postfix-2:2.10.1-7.el7.x86_64依赖
    rpm -e redhat-lsb-core-4.1-27.el7.centos.1.x86_64
    
    1. 卸载postfix-2:2.10.1-7.el7.x86_64
    rpm -e postfix-2:2.10.1-7.el7.x86_64
    
    1. 卸载rpm -e mariadb-libs-5.5.60-1.el7_5.x86_64
    rpm -e  mariadb-libs-5.5.60-1.el7_5.x86_64
    
    1. 查看mariadb是否已经卸载完成
    rpm -qa |grep  mariadb
    

    相关文章

      网友评论

          本文标题:阿里云ecs卸载mariadb时的error

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