[英]Ubuntu 16.04 can't rebuild mySQL
I am trying to do a clean reinstall of mySQL on my local machine for various reasons. 由于各种原因,我试图在本地计算机上重新安装mySQL。 I have followed sever posts here and on stack.
我一直在这里和堆栈上的服务器帖子。 particularly followed this post in detail, however every time I go through the steps I end at the same result.
特别是详细地跟随了这篇文章 ,但是,每次执行这些步骤时,我都会得到相同的结果。
Setting up mysql-client (5.7.20-0ubuntu0.16.04.1) ...
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mysql-client (5.7.20-0ubuntu0.16.04.1) ...
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am absolutely stumped at this point... 在这一点上,我绝对感到难过...
As discussed earlier in the discussion in the post, I think you are safe to reinstall it. 如前文讨论中所述,我认为您可以安全地重新安装它。 We should remove all traces of previous installation of mysql and then reinstall it.
我们应该删除先前安装的mysql的所有痕迹,然后重新安装它。
sudo apt-get remove --purge mysql*
If these were installed as part of the package dependencies for mysql, 如果这些是作为mysql软件包依赖关系的一部分安装的,
sudo apt-get autoremove
sudo apt-get autoclean
Then the important bit, this error could be caused because your distribution is not upgraded recently, or at least conflicts are not resolved properly. 然后重要的一点是,此错误可能是由于您的发行版最近未升级,或者至少没有正确解决冲突引起的。 I would just upgrade Ubuntu.
我只是升级Ubuntu。
sudo apt-get dist-upgrade
Now after this is done, you can try to install mysql as normal again. 现在,完成此操作后,您可以尝试再次正常安装mysql。 Hope this will work, please give a report.
希望这能奏效,请举报。 If it doesnt work we'll try another fix.
如果它不起作用,我们将尝试另一种修复方法。
Here's a link to digital oceans installation for mysql. 这是mysql的Digital Oceans安装的链接。 Though you could use MariaDB.
虽然可以使用MariaDB。
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04 https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.