首先開啟終端,用root登陸。切換到/etc/apt/目錄下,執行:cd /apt/get/,如圖:將裡面的sources.list複製一下,為了安全。如圖:接下來就是用vim 開啟 sources.list,將裡面的原有的內容刪除(知道為什麼之前要複製了吧),然後新增如下內容:deb
http://mirrors.163.com/ubuntu/
首先開啟終端,用root登陸。切換到/etc/apt/目錄下,執行:cd /apt/get/,如圖:將裡面的sources.list複製一下,為了安全。如圖:接下來就是用vim 開啟 sources.list,將裡面的原有的內容刪除(知道為什麼之前要複製了吧),然後新增如下內容:deb
http://mirrors.163.com/ubuntu/
trusty main restricted universe multiversedebhttp://mirrors.163.com/ubuntu/
trusty-security main restricted universe multiversedebhttp://mirrors.163.com/ubuntu/
trusty-updates main restricted universe multiversedebhttp://mirrors.163.com/ubuntu/
trusty-proposed main restricted universe multiversedebhttp://mirrors.163.com/ubuntu/
trusty-backports main restricted universe multiversedeb-srchttp://mirrors.163.com/ubuntu/
trusty main restricted universe multiversedeb-srchttp://mirrors.163.com/ubuntu/
trusty-security main restricted universe multiversedeb-srchttp://mirrors.163.com/ubuntu/
trusty-updates main restricted universe multiversedeb-srchttp://mirrors.163.com/ubuntu/
trusty-proposed main restricted universe multiversedeb-srchttp://mirrors.163.com/ubuntu/
trusty-backports main restricted universe multiverse5最後執行:apt-get update就好了。: