Ubuntu14.04和Ubuntu16.04更換阿里源的方法
換成國(guó)內(nèi)最快的阿里云源
第一步:備份原來(lá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 ##測(cè)試版源 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 ##測(cè)試版源 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)環(huán)境下如何獲得U盤拔插的信息
獲得U盤的插入或者拔取得信息的傳統(tǒng)方法是在內(nèi)核級(jí)運(yùn)行hotplug程序,相關(guān)參數(shù)通過(guò)環(huán)境變量傳遞過(guò)來(lái),再由hotplug通知其他關(guān)注hotplug的應(yīng)用程序。這樣的做法效率有些低,現(xiàn)在通過(guò)一種特殊類型的socket netlink實(shí)現(xiàn)獲取U盤拔插的信息。netlink專門用于內(nèi)核空間和用戶空間的異步通信。2008-04-04Centos7重啟apache、nginx、mysql、php-fpm命令方法
這篇文章主要介紹了Centos7重啟apache、nginx、mysql、php-fpm命令方法,需要的朋友可以參考下2018-02-02linux系統(tǒng)下創(chuàng)建lvm掛載到指定目錄的操作步驟
這篇文章主要介紹了linux系統(tǒng)下創(chuàng)建lvm掛載到指定目錄的操作步驟,非常不錯(cuò),具有參考借鑒價(jià)值 ,需要的朋友可以參考下2018-02-02