記一次ubuntu阿里的下載源的問題

一直用阿里的下載源,今天被坑了一把,操作是這樣的

我要安裝redis,make時發現gcc沒安裝,於是安裝gcc,使用的命令如下:apt-get  install build-essential,報錯如下

簡單說就是:安裝build-essential報錯,提示依賴libc6-dev;然後去安裝libc6-dev又報錯,提示依賴libc6,版本衝突。。。。

上網搜了半天,有人各種騷操作,試了沒搞好;還有人說換了網易的源,換成科大的源就好了

我看了自己是阿里的源,也就沒折騰,因爲一直用着挺順利的

後來各種嘗試都不行,抱着試試看的心態試了下清華的源,立馬好了,順利到不行,無語。。。。

這裏貼上清華的源,把/etc/apt/sources.list中改成如下內容後,再執行下sudo apt-get update即可

說明下,我的環境是ubuntu 16.04版本

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章