這篇“Ubuntu安裝MySQL Server提示Depends: mysql-server-5.5怎么解決”文章的知識點大部分人都不太理解,所以小編給大家總結(jié)了以下內(nèi)容,內(nèi)容詳細,步驟清晰,具有一定的借鑒價值,希望大家閱讀完這篇文章能有所收獲,下面我們一起來看看這篇“Ubuntu安裝MySQL Server提示Depends: mysql-server-5.5怎么解決”文章吧。

10年積累的成都網(wǎng)站設(shè)計、成都做網(wǎng)站經(jīng)驗,可以快速應(yīng)對客戶對網(wǎng)站的新想法和需求。提供各種問題對應(yīng)的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡(luò)服務(wù)。我雖然不認(rèn)識你,你也不認(rèn)識我。但先建設(shè)網(wǎng)站后付款的網(wǎng)站建設(shè)流程,更有海陽免費網(wǎng)站建設(shè)讓你可以放心的選擇與我們合作。
Ubuntu 安裝 MySQL Server 提示 mysql-server : Depends: mysql-server-5.5
使用 Ubuntu 14.04 系統(tǒng)在安裝 mysql-server 時出現(xiàn)如下報錯信息:
eadingpackagelists...Done Buildingdependencytree Readingstateinformation...Done Somepackagescouldnotbeinstalled.Thismaymeanthatyouhave requestedanimpossiblesituationorifyouareusingtheunstable distributionthatsomerequiredpackageshavenotyetbeencreated orbeenmovedoutofIncoming. Thefollowinginformationmayhelptoresolvethesituation: Thefollowingpackageshaveunmetdependencies: mysql-server:Depends:mysql-server-5.5butitisnotgoingtobeinstaed E:Unabletocorrectproblems,youhaveheldbrokenpackages.
可以看到報錯是無法解決 mysql-server 安裝時的依賴關(guān)系導(dǎo)致的。
因為用戶是使用 apt-get 的方式安裝的,那么這種安裝方式通常是能夠自動解決依賴關(guān)系。
問題原因
因為系統(tǒng)自帶的安裝源無法解決安裝包依賴問題,更換為新的安裝源,解決包依賴問題,安裝軟件。
解決方案
方案一:修改系統(tǒng) apt-get 更新配置文件
方案二:下載阿里云官方 apt-get 源更新腳本
方案一
cp-a/etc/apt/source.list/etc/apt/source.list.bak//備份/etc/apt/source.list文件 vim/etc/apt/source.list
在最前面添加一下內(nèi)容
debhttp://mirrors.aliyun.com/ubuntu/precisemainrestricteduniversemultiverse debhttp://mirrors.aliyun.com/ubuntu/precise-securitymainrestricteduniversemultiverse debhttp://mirrors.aliyun.com/ubuntu/precise-updatesmainrestricteduniversemultiverse debhttp://mirrors.aliyun.com/ubuntu/precise-proposedmainrestricteduniversemultiverse debhttp://mirrors.aliyun.com/ubuntu/precise-backportsmainrestricteduniversemultiverse deb-srchttp://mirrors.aliyun.com/ubuntu/precisemainrestricteduniversemultiverse deb-srchttp://mirrors.aliyun.com/ubuntu/precise-securitymainrestricteduniversemultiverse deb-srchttp://mirrors.aliyun.com/ubuntu/precise-updatesmainrestricteduniversemultiverse deb-srchttp://mirrors.aliyun.com/ubuntu/precise-proposedmainrestricteduniversemultiverse deb-srchttp://mirrors.aliyun.com/ubuntu/precise-backportsmainrestricteduniversemultiverse
執(zhí)行 apt-get update 更新一下列表
方案二
1.下載 apt-get 更新源腳本
wgethttp://oss.aliyuncs.com/aliyunecs/update_source.tgz
2.解壓并賦權(quán)腳本
tarxvfupdate_source.tgz chmod777update_source.sh
3.執(zhí)行該腳本
./update_source.sh
以上就是關(guān)于“Ubuntu安裝MySQL Server提示Depends: mysql-server-5.5怎么解決”這篇文章的內(nèi)容,相信大家都有了一定的了解,希望小編分享的內(nèi)容對大家有幫助,若想了解更多相關(guān)的知識內(nèi)容,請關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
網(wǎng)站標(biāo)題:Ubuntu安裝MySQLServer提示Depends:mysql-server-5.5怎么解決
URL標(biāo)題:http://www.chinadenli.net/article2/gicgic.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站排名、、網(wǎng)站營銷、網(wǎng)站導(dǎo)航、商城網(wǎng)站、微信小程序
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)