小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

Ubuntu 16.04配置國(guó)內(nèi)高速apt

 刀首木 2018-09-15

Ubuntu 16.04下載軟件速度有點(diǎn)慢,因?yàn)槟J(rèn)的是從國(guó)外下載軟件,那就更換到國(guó)內(nèi)比較好的快速更新源(就是這些軟件所在的服務(wù)器),一般直接百度Ubuntu更新源就能出來(lái)一大堆,這時(shí)候最好是找和自己Ubuntu版本一致的更新源,我的Ubuntu版本是16.04,下面是我找到的一個(gè)比較好的更新源。

1.尋找國(guó)內(nèi)鏡像源

https://mirrors.tuna./help/ubuntu/

2.配置source  list源

sources.list系統(tǒng)自帶的,源是來(lái)Ubuntu的官網(wǎng)!安裝包比較慢,所以最好切換成國(guó)內(nèi)的

@ubuntu:~$ cd /etc/apt
@ubuntu:/etc/apt$ sudo cp sources.list sources.list.bak
@ubuntu:/etc/apt$ vim sources.list                                                 

# 默認(rèn)注釋了源碼鏡像以提高 apt update 速度,如有需要可自行取消注釋
deb https://mirrors.tuna./ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna./ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna./ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna./ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna./ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna./ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna./ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna./ubuntu/ xenial-security main restricted universe multiverse

# 預(yù)發(fā)布軟件源,不建議啟用
# deb https://mirrors.tuna./ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna./ubuntu/ xenial-proposed main restricted universe multiverse

3. 更新源

@ubuntu:/etc/apt$ sudo apt-get update
命中:1 http://mirrors.aliyun.com/ubuntu xenial InRelease
命中:2 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease       
命中:3 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease     
命中:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease       
正在讀取軟件包列表... 完成 

測(cè)試:安裝sl包
@ubuntu:/etc/apt$ sudo apt-get install sl

@ubuntu:/etc/apt$ sl

4.其他一些命令

sudo apt-get update  更新源
sudo apt-get install package 安裝包
sudo apt-get remove package 刪除包
sudo apt-cache search package 搜索軟件包
sudo apt-cache show package  獲取包的相關(guān)信息,如說(shuō)明、大小、版本等
sudo apt-get install package --reinstall  重新安裝包
sudo apt-get -f install  修復(fù)安裝
sudo apt-get remove package --purge 刪除包,包括配置文件等
sudo apt-get build-dep package 安裝相關(guān)的編譯環(huán)境
sudo apt-get upgrade 更新已安裝的包
sudo apt-get dist-upgrade 升級(jí)系統(tǒng)
sudo apt-cache depends package 了解使用該包依賴(lài)那些包
sudo apt-cache rdepends package 查看該包被哪些包依賴(lài)
sudo apt-get source package  下載該包的源代碼
sudo apt-get clean && sudo apt-get autoclean 清理無(wú)用的包
sudo apt-get check 檢查是否有損壞的依賴(lài)

更多Ubuntu相關(guān)信息見(jiàn)Ubuntu 專(zhuān)題頁(yè)面 http://www./topicnews.aspx?tid=2

本文永久更新鏈接地址http://www./Linux/2017-11/148627.htm

linux

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶(hù) 評(píng)論公約

    類(lèi)似文章 更多