這篇“Ubuntu安裝MySQL Server提示Depends: mysql-server-5.5怎么解決”文章的知識(shí)點(diǎn)大部分人都不太理解,所以小編給大家總結(jié)了以下內(nèi)容,內(nèi)容詳細(xì),步驟清晰,具有一定的借鑒價(jià)值,希望大家閱讀完這篇文章能有所收獲,下面我們一起來(lái)看看這篇“Ubuntu安裝MySQL Server提示Depends: mysql-server-5.5怎么解決”文章吧。
10年積累的成都網(wǎng)站設(shè)計(jì)、成都做網(wǎng)站經(jīng)驗(yàn),可以快速應(yīng)對(duì)客戶(hù)對(duì)網(wǎng)站的新想法和需求。提供各種問(wèn)題對(duì)應(yīng)的解決方案。讓選擇我們的客戶(hù)得到更好、更有力的網(wǎng)絡(luò)服務(wù)。我雖然不認(rèn)識(shí)你,你也不認(rèn)識(shí)我。但先建設(shè)網(wǎng)站后付款的網(wǎng)站建設(shè)流程,更有海陽(yáng)免費(fèi)網(wǎng)站建設(shè)讓你可以放心的選擇與我們合作。
Ubuntu 安裝 MySQL Server 提示 mysql-server : Depends: mysql-server-5.5
使用 Ubuntu 14.04 系統(tǒng)在安裝 mysql-server 時(shí)出現(xiàn)如下報(bào)錯(cuò)信息:
eadingpackagelists...Done Buildingdependencytree Readingstateinformation...Done Somepackagescouldnotbeinstalled.Thismaymeanthatyouhave requestedanimpossiblesituationorifyouareusingtheunstable distributionthatsomerequiredpackageshavenotyetbeencreated orbeenmovedoutofIncoming. Thefollowinginformationmayhelptoresolvethesituation: Thefollowingpackageshaveunmetdependencies: mysql-server:Depends:mysql-server-5.5butitisnotgoingtobeinstaed E:Unabletocorrectproblems,youhaveheldbrokenpackages.
可以看到報(bào)錯(cuò)是無(wú)法解決 mysql-server 安裝時(shí)的依賴(lài)關(guān)系導(dǎo)致的。
因?yàn)橛脩?hù)是使用 apt-get 的方式安裝的,那么這種安裝方式通常是能夠自動(dòng)解決依賴(lài)關(guān)系。
問(wèn)題原因
因?yàn)橄到y(tǒng)自帶的安裝源無(wú)法解決安裝包依賴(lài)問(wèn)題,更換為新的安裝源,解決包依賴(lài)問(wèn)題,安裝軟件。
解決方案
方案一:修改系統(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)容對(duì)大家有幫助,若想了解更多相關(guān)的知識(shí)內(nèi)容,請(qǐng)關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
網(wǎng)站標(biāo)題:Ubuntu安裝MySQLServer提示Depends:mysql-server-5.5怎么解決
URL標(biāo)題:http://chinadenli.net/article2/gicgic.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站排名、、網(wǎng)站營(yíng)銷(xiāo)、網(wǎng)站導(dǎo)航、商城網(wǎng)站、微信小程序
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)