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 快取結果:

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 儲存庫。

相關內容