Mysql安装问题

Mysql安装问题

我正在尝试安装 mysql-server-5.6 包,但是出现以下错误消息:

root@ps481138:/home/nikitasorokin# apt-get install mysql-server-5.6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
mysql-server-5.6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 941 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mysql-server-5.6 (5.6.25-0ubuntu1) ...
stop: Unknown instance: 
invoke-rc.d: initscript mysql, action "stop" failed.
update-alternatives: error: alternative path /etc/mysql/mysql.cnf doesn't exist
dpkg: error processing package mysql-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 mysql-server-5.6
E: Sub-process /usr/bin/dpkg returned an error code (1)

Apt-cache 结果:

root@ps481138:/home/nikitasorokin# apt-cache policy mysql-server-5.6
mysql-server-5.6:
  Installed: 5.6.25-0ubuntu1
  Candidate: 5.6.25-0ubuntu1
   Version table:
  *** 5.6.25-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status

附加信息:

lsb_release -a; uname -a
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:        12.04
Codename:       precise

Linux ps481138 3.1.9-vs2.3.2.5vs2.3.2.5+ #3 SMP Wed Feb 12 13:51:29  PST 2014 x86_64 x86_64 x86_64 GNU/Linux

您认为导致此错误的原因是什么?我该如何修复它?提前致谢!

答案1

抱歉,你不能在 Ubuntu Precise 中安装此 Ubuntu Wily 软件包。再次抱歉,我的回答太短,并且预示着坏消息:\

删除系统内的 Wily 存储库。

相关内容