解决 MariaDB 删除问题

解决 MariaDB 删除问题

我的 MySQL/MariaDB 安装已损坏,我正在尝试通过删除并重新安装apt-get ,不幸的是,在停止 mariadb 服务器后,我遇到了 apt-get 冻结的主要问题。

这是我得到的输出

jason@asus:~$ sudo apt-get install mariadb-server-core-10.0 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  mariadb-server-10.0
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  mariadb-server-core-10.0
0 upgraded, 1 newly installed, 0 to remove and 25 not upgraded.
2 not fully installed or removed.
Need to get 0 B/5,486 kB of archives.
After this operation, 15.3 MB of additional disk space will be used.
Selecting previously unselected package mariadb-server-core-10.0.
(Reading database ... 361764 files and directories currently installed.)
Unpacking mariadb-server-core-10.0 (from .../mariadb-server-core-10.0_10.0.2+maria-1~precise_i386.deb) ...
Setting up mariadb-server-core-10.0 (10.0.2+maria-1~precise) ...
Setting up mariadb-server-10.0 (10.0.2+maria-1~precise) ...
 * Stopping MariaDB database server mysqld     

执行完最后一行之后,apt-get 冻结,10 分钟内没有任何进展。

答案1

我想说你可以停止它(例如通过 CTRL-C 或重新启动),因为停止服务器并不是一件重要的事情。

然后您可以继续sudo apt-get purge mariadb-server-core-10.0

相关内容