1. 程式人生 > >Ubuntu14.04和16.04官方預設更新源sources.list和第三方源推薦(乾貨!)

Ubuntu14.04和16.04官方預設更新源sources.list和第三方源推薦(乾貨!)

   不多說,直接上乾貨!

  寫在前面:筆者由於還在學校學習,學校沒有開發給Linux用的上網客戶端,所以只能用在windows系統中通過安裝虛擬機器執行linux比較方便,但沒有外網,只有學校的教育網,所以我需要將ubuntu的預設源修改為教育網中的資源才可以完美執行ubuntu,當然這個教程也適用於修改為非教育源。

  • 第一步,備份官方的預設源

  避免自己手賤操作失誤,重灌系統太費時間

cp /etc/apt/sources.list /etc/apt/sources.list.bak        此命令是備份該官方原始檔

  Ubuntu 14.04.4官方預設更新源sources.list

# deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the ## distribution. deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-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://cn.archive.ubuntu.com/ubuntu/ trusty universe deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty universe deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates universe deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-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://cn.archive.ubuntu.com/ubuntu/ trusty multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty multiverse deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-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 http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu trusty-security main restricted deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted deb http://security.ubuntu.com/ubuntu trusty-security universe deb-src http://security.ubuntu.com/ubuntu trusty-security universe deb http://security.ubuntu.com/ubuntu trusty-security multiverse deb-src http://security.ubuntu.com/ubuntu trusty-security 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 trusty partner # deb-src http://archive.canonical.com/ubuntu trusty partner ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu trusty main deb-src http://extras.ubuntu.com/ubuntu trusty main

  Ubuntu 16.04官方預設更新源sources.list

#deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted

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

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial universe
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
  • 第二步,修改官方源為第三方源
sudo vim /etc/apt/sources.list                            申請root許可權修改該檔案(sudo)

附贈網上多數人推薦的第三方源:

  • 中科大源:
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted
deb http://mirrors.ustc.edu.cn/ubuntu/ precise universe
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise universe
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates universe
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates universe
deb http://mirrors.ustc.edu.cn/ubuntu/ precise multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
  • 搜狐源
deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
deb http://mirrors.sohu.com/ubuntu/ precise universe
deb-src http://mirrors.sohu.com/ubuntu/ precise universe
deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb http://mirrors.sohu.com/ubuntu/ precise multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
  • 網易源
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

  阿里雲

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

   大家,有時候,需要把http改成https

  然後,大家可以像我這樣,來做好備份,有時候,會因為網路問題,需要用到不同的源,好切換!

/etc/apt/sources.list (比如,這是官方的源)
/etc/apt/sources.list.qinghua (比如,這是清華的源)
/etc/apt/sources.list.zhongkeda (比如,這是中科大的源)
/etc/apt/sources.list.sohu (比如,這是搜狐的源)
/etc/apt/sources.list.wangyi (比如,這是網易的源)

  然後,需要用到哪個了,在比如,我需要用到清華源,則,

mv  sources.list.qinghua    sources.list

  然後,把官方的源,暫時改為

mv sources.list   sources.list.bak  

擴充套件學習

歡迎大家,加入我的微信公眾號:大資料躺過的坑        人工智慧躺過的坑

同時,大家可以關注我的個人部落格

   http://www.cnblogs.com/zlslch/   和     http://www.cnblogs.com/lchzls/      http://www.cnblogs.com/sunnyDream/   

   詳情請見:http://www.cnblogs.com/zlslch/p/7473861.html

  人生苦短,我願分享。本公眾號將秉持活到老學到老學習無休止的交流分享開源精神,匯聚於網際網路和個人學習工作的精華乾貨知識,一切來於網際網路,反饋回網際網路。
  目前研究領域:大資料、機器學習、深度學習、人工智慧、資料探勘、資料分析。 語言涉及:Java、Scala、Python、Shell、Linux等 。同時還涉及平常所使用的手機、電腦和網際網路上的使用技巧、問題和實用軟體。 只要你一直關注和呆在群裡,每天必須有收穫

      對應本平臺的討論和答疑QQ群:大資料和人工智慧躺過的坑(總群)(161156071) 

 

相關推薦

Ubuntu14.0416.04官方預設更新sources.list第三方推薦乾貨

   不多說,直接上乾貨!   寫在前面:筆者由於還在學校學習,學校沒有開發給Linux用的上網客戶端,所以只能用在windows系統中通過安裝虛擬機器執行linux比較方便,但沒有外網,只有學校的教育網,所以我需要將ubuntu的預設源修改為教育網中的資源才可以完美執行ubuntu,當然這個教

安裝系統Ubuntu Server 14.0416.0417.10

登錄 選中 國內 虛擬 顯示 電腦 語言 警告 常用 本文以14.04位案例進行安裝,其他版本相關問題會做註解 1.選擇要安裝的系統語言 本界面建議選擇English,之後再選擇中文安裝 註意: 安裝服務器版時,對於14.x版本第一步選擇中文沒有問題,但是對於16.04

Ubuntu 14.04 或者16.04開啟root賬戶登入圖形介面登入root時候的報錯解決方法

1.開啟終端 2.輸入sudo vi /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf 3.新增一行:greeter-show-manual-login=true 儲存關閉。 4.給root設定密碼,在中端中輸入:sudo p

ubuntu 14.04 16.04 快速下載

由於官網伺服器在國外,下載速度奇慢,所以我們可以利用阿里雲映象下載ubuntu ubuntu 14.04: http://mirrors.aliyun.com/ubuntu-releases/14.04/ ubuntu 16.04: http://mirrors.aliyun.c

ubantu14.0416.04安裝cuda8.0所遇到的各種bug一些分享

本來   以為是很簡單很開心的安裝,花費了好幾個小時,氣到吐血。下面描述自己遇到的各種bug。希望能對你有幫助。1、按照網上教材(其實基本都是翻譯官方文件)安裝遇到第一個問題:ubantu 命令列(tty)介面不支援中文,導致找不到存放cuda run file的目錄(資料夾

Ubuntu18.04更換官方默認更新sources.list

建議 進入 upd ror help 軟件源 apt uri mirror ⒈備份官方默認更新源文件 cp /etc/apt/sources.list /etc/apt/sources.list.bak 備份官方更新源文件 ⒉編輯   1.打開 

ubuntu (14.04 or 16.04) ssh

ubuntu (14.04 or 16.04) ssh:Permission denied, please try again. 前提:已經知道ssh目標主機的使用者名稱、IP地址、以及密碼。 網上的大部分方法,我都試過。其實只需要兩步。 在ubuntu系統下開啟新的終端,綠

安裝 Go 1.11 在 Ubuntu 18.04 & 16.04 LTS

Step 1 — 安裝 Go 語言 更新你的應用軟體保持最新 sudo apt-get update sudo apt-get -y upgrade 現在您需要下載Go二進位制檔案。您可以從官方軟體包中找到下載連結列表。要在Ubuntu 64位作業系統上安裝它,請按以下命令執行 cd

How to Install FFmpeg on Ubuntu 18.04 & 16.04

FFmpeg is a cross-platform solution for streaming audio and video as well as recording and conversion. It’s also useful to convert multimedia file

3.修改更新sources.list,提高軟體下載安裝速度2017.04.05

2017年4月5日再次更新源 1.切換到root使用者(如果已經是root使用者就直接看第二步) [email protected]:~$ su 密碼: 2.用文字編輯器開啟sources.list,手動新增下面的更新源 [email protected]:/ho

ubuntu 14.04升級16.04 遇到的相關問題及解決

安裝ROS時,程式報錯: ***@bw-CW35:~$ sudo apt-get install ros-kinetic-desktop-full [sudo] *** 的密碼: 正在讀取軟體包列表... 完成 正在分析軟體包的依賴關係樹 正在

華三H3C官方模擬器HCL從入門到精通視頻教程9課時

securecrt 必備 網絡拓撲 img 課程 vpd -o 學習 使用 課程介紹 HCL-華三雲實驗室是一款界面圖形化的全真網絡模擬軟件用戶可以通過該軟件實現H3C公司多個型號的虛擬設備的組網是用戶學習、測試基於H3C公司Conware V7平臺的網絡設備的必備工具

OpenLayers官方示例詳解八之滑鼠位置控制元件Mouse Position

目錄 一、示例簡介 二、程式碼詳解 一、示例簡介     使用滑鼠位置控制元件(ol/control/MousePosition)來動態顯示地圖上滑鼠游標的座標     並且可以由使用者調整投影和座標精度。 二、程式碼詳解 &l

OpenLayers官方示例詳解六之線串箭頭樣式LineString Arrows

目錄 一、示例簡介 二、程式碼詳解   三、總結 一、示例簡介     為每一個線串(LineString)的子線段繪製箭頭。 二、程式碼詳解  <!DOCTYPE html> <html lang=

OpenLayers官方示例詳解十五之比例尺控制元件Scale Line

目錄   一、示例簡介 二、程式碼詳解 一、示例簡介     本示例展示瞭如何建立一個比例尺控制元件(ol.control.ScaleLine),同時讓比例尺控制元件的單位根據使用者的選擇而改變。     OpenLaye

騰訊、阿里百度的12大隱藏良心級實用功能24K純乾貨

說到BAT(百度、騰訊和阿里巴巴),難道你還是隻知道搜尋,微信,王者榮耀和淘寶買買買嗎?這裡有12大隱藏良心級實用功能,別讓運營不開心獨家整理! 1、騰訊智圖:圖片壓縮優化平臺 智圖可以幫你把圖片壓縮到很小,但是還是很清晰!有很多網站限制圖片上傳的大小,用這個就

學習資料乾貨彙集不斷更新更新於2017-9-17】

歡迎Follow我的GitHub, 關注我的CSDN. 其餘參考Android目錄. 推薦文章: 更新於2017年-9-17 1、535303 資料庫索引設計與優化 2、Android驅動開發與移植實戰詳解 3、Appium手機自動化解決方

重要Servlet中主要的幾個介面

來源:http://blog.csdn.net/lunatic_xian/article/details/53040941 Java HttpServlet類和GenericServlet類有什麼區別? https://zhidao.baidu.com/questi

SoaringLee_fighting的技術專欄專注於音視訊編解碼AI技術領域,開源分享,不忘初心,追求卓越

【關於博主】   目前就職於國內知名安防企業,從事於編解碼演算法開發和優化工作,對音視訊編解碼、機器視覺和深度學習有很大興趣,期待與有識之士共同交流學習! 座標: 浙江杭州 Email: [email protected] 【推薦部落格】  編解碼: h

[小菜雞一起刷題(python)] LeetCode 131. 分割回文串 Palindrome Partitioning

LeetCode 131. 分割回文串 (Palindrome Partitioning) 原題 思路 程式碼 原題 給定一個字串 s,將 s 分割成一些子串,使每個子串都是迴文串。 返回 s 所有可能的分割方案。 示例: