在 Ubuntu 12.04 上。这是一个非常古老的实用 AWS 服务器,始终运行可靠。今天我注意到 MySQL 没有运行。我重新启动了一下,只是为了“清理”。当我尝试发出:
/etc/init.d/mysql start >/dev/null 2>&1 &
我得到:
[1] 10836
不确定这是什么意思。我注意到有一个待处理的软件更新w3m
,所以我使用
apt-get -y install w3m ..
并得到
dpkg: dependency problems prevent configuration of mysql-server-5.5:
mysql-server-5.5 depends on mysql-server-core-5.5 (= 5.5.46-0ubuntu0.12.04.2); however:
Version of mysql-server-core-5.5 on system is 5.5.54-0ubuntu0.12.04.1.
dpkg: error processing mysql-server-5.5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.5
mysql-server
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server-5.5 : Depends: mysql-server-core-5.5 (= 5.5.46-0ubuntu0.12.04.2) but 5.5.54-0ubuntu0.12.04.1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我尝试在 Google 上搜索此问题和这些结果,但没有找到解决方案。我检查了 MySQL 错误日志,它们都是零字节。
这是怎么回事?
答案1
更新系统有帮助吗?sudo apt-get update && sudo apt-get upgrade
它看起来像它需要的版本 mysql-server-core-5.55.5.46-0ubuntu0.12.04.2不是它认为可用的5.5.54-0ubuntu0.12.04.1
系统更新可能有助于满足依赖关系。干杯,