配置Ubuntu Server高速apt-get源
今天剛裝上Ubuntu Server 12,預設的apt-get源比較慢。更改一下源地址。
方法:
1、修改源地址:
cp /etc/apt/sources.list /etc/apt/sources.list.bak
vim /etc/apt/sources.list
加入如下內容(中科大的):
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
更新看看速度:
sudo apt-get update
sudo apt-get upgrade
相關文章
- Ubuntu apt-get和pip源更換Ubuntuapt-get
- 【Ubuntu】修改 apt-get 源為國內映象源的方法Ubuntuapt-get
- Ubuntu apt-get和pip國內源更換Ubuntuapt-get
- Ubuntu : apt-get 命令Ubuntuapt-get
- Ubuntu apt-get proxyUbuntuapt-get
- 【Ubuntu】Ubuntu 24 配置映象源Ubuntu
- ubuntu apt-get 解除安裝Ubuntuapt-get
- Ubuntu 配置軟體源Ubuntu
- ubuntu:舊版本配置apt源(ubuntu 21.10)UbuntuAPT
- Linux 配置本地源 (Ubuntu / CentOS)LinuxUbuntuCentOS
- Ubuntu Server18.04 靜態 IP 配置教程UbuntuServer
- 02_Ubuntu使用apt-get下載Ubuntuapt-get
- Ubuntu如何配置軟體映象源?Ubuntu
- Docker中ubuntu映象配置apt阿里源DockerUbuntuAPT阿里
- docker apt-get 換源問題Dockerapt-get
- Ubuntu學習之apt-get update 升級錯誤Ubuntuapt-get
- VMware 虛擬機器圖文安裝和配置 Ubuntu Server 22.04虛擬機UbuntuServer
- Ubuntu 配置Ubuntu
- Ubuntu Server 24 安裝 PrometheusUbuntuServerPrometheus
- Ubuntu Server 基礎應用UbuntuServer
- ubuntu配置中國科學技術大學映象源Ubuntu
- Ubuntu OpenNTM配置Ubuntu
- ubuntu linux配置UbuntuLinux
- Ubuntu小配置Ubuntu
- ubuntu 修改源Ubuntu
- ubuntu換源Ubuntu
- 國內MAVEN資源庫高速映象Maven
- Ubuntu18.04..5 配置國內映象源:解決E: Failed to fetchUbuntuAI
- VMware 安裝 Ubuntu Server 18.04.5 LTSUbuntuServer
- virtualbox ubuntu 安裝 openssh-serverUbuntuServer
- Ubuntu 20.04 LTS Server搭建軟路由UbuntuServer路由
- ubuntu apt-get install xxx報錯無法下載的解決方法Ubuntuapt-get
- openEuler 配置VNC ServerVNCServer
- Windows Server安全配置WindowsServer
- apt-getapt-get
- ubuntu下vsftpd配置UbuntuFTP
- ubuntu切換源Ubuntu
- Ubuntu APT 換源UbuntuAPT
- Ubuntu 軟體源Ubuntu