Ubuntu14.04和Ubuntu16.04更換阿里源的方法
換成國內(nèi)最快的阿里云源
第一步:備份原來的源文件
cd /etc/apt/
然后會(huì)顯示下面的源文件sources.list
輸入命令
sudo cp sources.list sources.list.bak
就是將sources.list備份到sources.list.bak
第二步:替換源
阿里云源的文件
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse ##測試版源 deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse # 源碼 deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse ##測試版源 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse # Canonical 合作伙伴和附加 deb http://archive.canonical.com/ubuntu/ xenial partner deb http://extras.ubuntu.com/ubuntu/ xenial main
替換并保存
sudo gedit sources.list打開文件,替換成阿里云文件即可
第三步:更新源和軟件
sudo apt-get update 更新源
sudo apt-get upgrade 更新軟件
以上所述是小編給大家介紹的Ubuntu14.04和Ubuntu16.04更換阿里源的方法,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
相關(guān)文章
Linux系統(tǒng)中查找正在運(yùn)行的nginx目錄
這篇文章主要介紹了Linux系統(tǒng)中查找正在運(yùn)行的nginx目錄,本文內(nèi)容簡單但是給大家介紹的非常詳細(xì) ,需要的朋友可以參考下2019-05-05
linux下配置jdk環(huán)境變量的三種方法總結(jié)
下面小編就為大家?guī)硪黄猯inux下配置jdk環(huán)境變量的三種方法總結(jié)。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2016-09-09

