Ubuntu server LTS 14.04 MySQL server 無法啟動 無法重新安裝

OS: Ubuntu server LTS 14.04
APP: MySQL server 5.5/5.6
症狀:
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.

/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 127
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.

處置:
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean

這個應該是關鍵步驟(直到下了這個指令重新安裝才成功)
sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done

現在你可以重新安裝 mysql-server 了 (sudo apt-get install mysql-server)

收工!

留言

這個網誌中的熱門文章

使用 Excel 計算2個地點之間的直線距離

LINE 儲存的檔案傳到 email 不方便 很不方便 非常不方便 但是有解的筆記

合併列印標籤漏印