dpkg: error processing package mysql-server

后端 未结 13 915
悲&欢浪女
悲&欢浪女 2020-12-31 04:44

When I try to install mysql-server, an error comes like:

dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigure         


        
13条回答
  •  离开以前
    2020-12-31 05:39

    My answer from askubuntu.

    None of the apt methods worked for me, try this:

    Find locking process

    $ ps -eaf
    root      7316     1  0 00:19 ?        00:00:00 /usr/bin/dpkg --status-fd 35 --configure --pending
    root      7808  7316  0 00:19 ?        00:00:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/mysql-se
    root      7817  7808  0 00:19 ?        00:00:00 /bin/bash /var/lib/dpkg/info/mysql-server-5.7.postinst configure
    mysql     7973  7817  0 00:20 ?        00:00:00 mysqld --user=mysql --init-file=/var/lib/mysql-files/tmp.iNyY06ty0K --so
    

    Kill it

    do sudo kill -9 7973, basically the mysql one.

    Now purge

    sudo apt-get purge mysql-server-5.7 # Or whatever you are trying to purge.
    

提交回复
热议问题