我正在尝试在本地计算机上以各种原因干净地重新安装mySQL。我已经在这里和堆栈上关注了严重的帖子。特别关注this post,但每次我完成这些步骤时,我都会得到相同的结果。
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)
我现在绝对难过......
答案 0 :(得分:0)
正如之前在帖子中讨论中所讨论的那样,我认为您可以安全地重新安装它。我们应该删除以前安装mysql的所有痕迹,然后重新安装它。
sudo apt-get remove --purge mysql*
如果这些是作为mysql的包依赖项的一部分安装的,
sudo apt-get autoremove
sudo apt-get autoclean
然后重要的一点,这个错误可能是因为你的发行版最近没有升级,或者至少没有正确解决冲突。我只想升级Ubuntu。
sudo apt-get dist-upgrade
完成此操作后,您可以再次尝试正常安装mysql。希望这会奏效,请报告。如果它不起作用,我们将尝试另一种修复。
这是mysql数字海洋安装的链接。虽然你可以使用MariaDB。
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04