繁体   English   中英

在Debian VPS上安装Apache和未满足的依赖项错误

[英]Install Apache on Debian VPS & unmet dependencies error

我有一个VPS,它可以在Debian GNU / Linux 8(jessie)上运行。 我尝试在其上安装Apache,PHP和MySQL。 我收到以下错误:

以下软件包具有未满足的依赖关系:mysql-server:依赖:mysql-server-5.5,但不会被安装E:未满足的依赖关系。 尝试不带任何软件包的“ apt-get -f install”(或指定解决方案)。

当我运行apt-get -f install ,出现以下错误:

Preconfiguring packages ...
(Reading database ... 39521 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.5_5.5.52-0+deb8u1_amd64.deb ...
Aborting downgrade from (at least) 10.0 to 5.5.
If are sure you want to downgrade to 5.5, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.5_5.5.52-0+deb8u1_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)

我具有Linux的基本知识,因此有任何建议或帮助。 我在网上搜索并尝试卸载并删除并重新安装MySQL ...但是没有运气。

从您的错误输出中,我做了一个快速的apt-cache search以查看mysql-server的版本号

从我所看到的,您可能已经安装了mariadb-server-10.0而不是mysql-server

做一个dpkg -l | grep mysql dpkg -l | grep mysql ,看看结果。 您也可以尝试dpkg -l | grep server dpkg -l | grep server并查看该输出。

新增评论-

您是否删除了要求您执行的文件?

如果您需要同时运行两个数据库服务器,我将遵循此步骤
https://superuser.com/questions/1029228/mysql-and-mariadb-instances-on-the-same-server

如果您不需要两个数据库,那么我将apt-get remove mariadb-..从您的服务器中apt-get remove mariadb-..然后apt-get -f installapt-get -f install mysql-server

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM