給ubuntu選擇最快的更新來源
1、開啟設定》》軟體與更新,如下圖
#2、下載自:下拉選單,選擇其他網站
##3、你可以選擇最佳伺服器,也可以指定你滿意的伺服器。 選擇之後要求輸入密碼
#4、選擇關閉,之後會重新自動執行更新指令(sudo apt-get update),更新完成
#安裝Ubuntu18.04後,使用國外源太慢了,修改為國內源會快很多。
修改阿里源為Ubuntu 18.04預設的來源
備份/etc/apt/sources.list
#備份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
在/etc/apt/sources.list檔案前面新增以下條目
#新增阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
# deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
# deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
# deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
最後執行如下指令更新來源
##更新
sudo apt-get update
sudo apt-get upgrade
另外其他幾個國內源如下:
中科大源
##中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
163源
##163源
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
清華源
##清華源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ 仿生主受限宇宙多元宇宙
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ 仿生主受限宇宙多元宇宙
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates 主要受限宇宙多元宇宙
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates 主要受限宇宙多元宇宙
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports 主要受限宇宙多元宇宙
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports 主要受限宇宙多元宇宙
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security 主受限宇宙多元宇宙
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security 主要受限宇宙多元宇宙
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ 仿生提出的主要受限宇宙多元宇宙
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ 仿生提出的主要受限宇宙多元宇宙
相關推薦:
#ubuntu16.04編輯器vi怎麼使用?
ubuntu16.04系統怎麼配置頂部面板?
Ubuntu系統中怎麼卸載Sublime Text3?
以上是如何為Ubuntu選擇速度最快的更新來源:圖文教學的詳細內容。更多資訊請關注PHP中文網其他相關文章!