linux更換下載源

在linux 系統(tǒng)下,有時候使用命令sudo apt-get install 安裝命令時,經(jīng)常會出現(xiàn)找不到軟件安裝包或者下載出錯而導致軟件安裝失敗的情況,這種情況有可能就是因為數(shù)據(jù)源是國外鏡像而導致網(wǎng)址無法訪問,這時需要做的是翻墻或者更換國內數(shù)據(jù)源。更換方法:

1 sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup #備份

2 sudo nano /etc/apt/sources.list? #修改,將下面的阿里源復制進來

3 sudo apt-get update #更新列表

阿里云源:

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

友情鏈接更多精彩內容