在Debian VPS上安装Apache&未满足的依赖性错误

时间:2016-09-24 17:58:48

标签: mysql linux apache dependencies debian

我有一个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 ......但没有运气。

1 个答案:

答案 0 :(得分:0)

从你的错误输出我快速apt-cache search看到mysql-server的版本号

从我看到您安装的mariadb-server-10.0安装而不是mysql-server

执行dpkg -l | grep mysql并查看结果。您也可以尝试dpkg -l | grep server并查看该输出。

添加评论 -

你删除了它要求你做的文件吗?

如果你需要同时运行两个数据库服务器,我会跟着这个 https://superuser.com/questions/1029228/mysql-and-mariadb-instances-on-the-same-server

如果你不需要两个dbs,那么我会从你的服务器apt-get remove mariadb-..然后apt-get -f install来安装mysql-server

相关问题