2019-11-22更換linux的apt下載源

電信的網(wǎng)速使用apt-get都會ping不上捏浊,索性更改國內(nèi)源

打開apt的文件夾


cd /etc/apt

編輯源


vim ./sources.list

點(diǎn)擊i進(jìn)入編輯模式柴罐,逐條更新嘱支,包括網(wǎng)址后面的命令


# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to                                                                                                       

# newer versions of the distribution.                                                                                                                                           

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

# deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted                                                                                                                                                                                                                                                                                                  ## Major bug fix updates produced after the final release of the                                                                                                               

## distribution.                                                                                                                                                                 

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

# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted                                                                                                                                                                                                                                                                                          ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu                                                                                                     

## team. Also, please note that software in universe WILL NOT receive any                                                                                                       

## review or updates from the Ubuntu security team.                                                                                                                             

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

# deb-src http://archive.ubuntu.com/ubuntu/ bionic universe                                                                                                                     

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

# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe                                                                                                                                                                                                                                                                                                ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu                                                                                                     

## team, and may not be under a free licence. Please satisfy yourself as to                                                                                                     

## your rights to use the software. Also, please note that software in                                                                                                         

## multiverse WILL NOT receive any review or updates from the Ubuntu                                                                                                             

## security team.                                                                                                                                                               

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

# deb-src http://archive.ubuntu.com/ubuntu/ bionic multiverse                                                                                                                   

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

# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse                                                                                                                                                                                                                                                                                              ## N.B. software from this repository may not have been tested as                                                                                                               

## extensively as that contained in the main release, although it includes                                                                                                       

## newer versions of some applications which may provide useful features.                                                                                                       

## Also, please note that software in backports WILL NOT receive any review                                                                                                     

## or updates from the Ubuntu security team.                                                                                                                                     

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

# deb-src http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse                                                                                                                                                                                                                                                                    ## Uncomment the following two lines to add software from Canonical's                                                                                                           

## 'partner' repository.                                                                                                                                                         

## This software is not part of Ubuntu, but is offered by Canonical and the                                                                                                     

## respective vendors as a service to Ubuntu users.                                                                                                                             

# deb http://archive.canonical.com/ubuntu bionic partner                                                                                                                       

# deb-src http://archive.canonical.com/ubuntu bionic partner                                                                                                                                                                                                                                                                                                        deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse                                                                                   

# deb-src http://security.ubuntu.com/ubuntu/ bionic-security main restricted                                                                                                     

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

# deb-src http://security.ubuntu.com/ubuntu/ bionic-security universe                                                                                                           

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

# deb-src http://security.ubuntu.com/ubuntu/ bionic-security multiverse 

安裝conda菱父,更新conda源為清華鏡像


43  bash Anaconda3-2019.10-Linux-x86_64.sh -b -f -p ~/conda                                                                                                                   

  44  echo 'export PATH="/anaconda3/bin:$PATH"'>>/.bashrc                                                                                                                         

45  sudo echo 'export PATH="/anaconda3/bin:$PATH"'>>/.bashrc                                                                                                                   

46  echo 'export PATH="~/anaconda3/bin:$PATH"'>>~/.bashrc                                                                                                                       

47  source ~/.bashrc                                                                                                                                                             

48  conda deactivate                                                                                                                                                           

49  conda config --add channels conda-forge # Lowest priorit                                                                                                                   

50  conda config --add channels r # Optional                                                                                                                                   

51  conda config --add channels defaults                                                                                                                                       

52  conda config --add channels bioconda                                                                                                                                       

53  conda config --add channels                                                                                                                                                 

54  conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/                                                                                   

55  conda config --set show_channel_urls yes                                                                                                                                   

56  conda create -y -n transcriptome r-base=3.4.3 python=2.7                                                                                                                   

57  conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/                                                                                     

58  conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/                                                                               

59  conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/                                                                                       

60  conda config --set show_channel_urls yes
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市自晰,隨后出現(xiàn)的幾起案子凝化,更是在濱河造成了極大的恐慌,老刑警劉巖酬荞,帶你破解...
    沈念sama閱讀 217,907評論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件搓劫,死亡現(xiàn)場離奇詭異,居然都是意外死亡混巧,警方通過查閱死者的電腦和手機(jī)枪向,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,987評論 3 395
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來咧党,“玉大人秘蛔,你說我怎么就攤上這事“猓” “怎么了深员?”我有些...
    開封第一講書人閱讀 164,298評論 0 354
  • 文/不壞的土叔 我叫張陵,是天一觀的道長蛙埂。 經(jīng)常有香客問我辨液,道長,這世上最難降的妖魔是什么箱残? 我笑而不...
    開封第一講書人閱讀 58,586評論 1 293
  • 正文 為了忘掉前任滔迈,我火速辦了婚禮止吁,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘燎悍。我一直安慰自己敬惦,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,633評論 6 392
  • 文/花漫 我一把揭開白布谈山。 她就那樣靜靜地躺著俄删,像睡著了一般。 火紅的嫁衣襯著肌膚如雪奏路。 梳的紋絲不亂的頭發(fā)上畴椰,一...
    開封第一講書人閱讀 51,488評論 1 302
  • 那天,我揣著相機(jī)與錄音鸽粉,去河邊找鬼斜脂。 笑死,一個(gè)胖子當(dāng)著我的面吹牛触机,可吹牛的內(nèi)容都是我干的帚戳。 我是一名探鬼主播,決...
    沈念sama閱讀 40,275評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼儡首,長吁一口氣:“原來是場噩夢啊……” “哼片任!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起蔬胯,我...
    開封第一講書人閱讀 39,176評論 0 276
  • 序言:老撾萬榮一對情侶失蹤对供,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后氛濒,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體产场,經(jīng)...
    沈念sama閱讀 45,619評論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,819評論 3 336
  • 正文 我和宋清朗相戀三年泼橘,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了涝动。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片迈勋。...
    茶點(diǎn)故事閱讀 39,932評論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡炬灭,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出靡菇,到底是詐尸還是另有隱情重归,我是刑警寧澤,帶...
    沈念sama閱讀 35,655評論 5 346
  • 正文 年R本政府宣布厦凤,位于F島的核電站鼻吮,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏较鼓。R本人自食惡果不足惜椎木,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,265評論 3 329
  • 文/蒙蒙 一违柏、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧香椎,春花似錦漱竖、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,871評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至玛界,卻和暖如春万矾,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背慎框。 一陣腳步聲響...
    開封第一講書人閱讀 32,994評論 1 269
  • 我被黑心中介騙來泰國打工良狈, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人鲤脏。 一個(gè)月前我還...
    沈念sama閱讀 48,095評論 3 370
  • 正文 我出身青樓们颜,卻偏偏與公主長得像,于是被迫代替她去往敵國和親猎醇。 傳聞我的和親對象是個(gè)殘疾皇子窥突,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,884評論 2 354