gpt4 book ai didi

mysql - Ubuntu 16.04 无法重建 mySQL

转载 作者:行者123 更新时间:2023-11-29 18:13:13 34 4
gpt4 key购买 nike

由于各种原因,我正在尝试在本地计算机上干净地重新安装 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)

我现在完全被难住了......

最佳答案

正如本文前面的讨论中所讨论的,我认为您可以安全地重新安装它。我们应该删除以前安装mysql的所有痕迹,然后重新安装它。

sudo apt-get remove --purge mysql*

如果这些是作为 mysql 包依赖项的一部分安装的,

sudo apt-get autoremove
sudo apt-get autoclean

然后重要的一点,这个错误可能是因为您的发行版最近没有升级,或者至少没有正确解决冲突。我只会升级 Ubuntu。

sudo apt-get dist-upgrade

完成此操作后,您可以尝试再次正常安装 mysql。希望这会起作用,请提供报告。如果它不起作用,我们将尝试另一个修复。

这是 mysql 的 digital oceans 安装的链接。虽然你可以使用 MariaDB。

https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04

关于mysql - Ubuntu 16.04 无法重建 mySQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47232716/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com