Ubuntu配置阿里云源

2017-12-28 13:42:00
u6751u91ccu6765u7684u626bu5730u50e7
原创
833

备份源文件

cp /etc/apt/sources.list /etc/apt/sources.list.bak
修改源为阿里云

# 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
执行更新

root@HZ-HADOOP-01:/etc/apt# apt-get update
Get:1 http://mirrors.aliyun.com/ubuntu xenial InRelease [247 kB]
Get:2 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease [102 kB]                                                                   
Get:3 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease [102 kB]                                                                                  
Get:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease [102 kB]                                                                                   
Get:5 http://mirrors.aliyun.com/ubuntu xenial/main Sources [868 kB]                                                                                         
Get:6 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]                                                                                       
Get:7 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]                        
Get:8 http://mirrors.aliyun.com/ubuntu xenial/restricted Sources [4,808 B]                               
Get:9 http://mirrors.aliyun.com/ubuntu xenial/multiverse Sources [179 kB]                                          
Get:10 http://mirrors.aliyun.com/ubuntu xenial/universe Sources [7,728 kB]                                   
Get:11 http://archive.canonical.com/ubuntu xenial/partner Sources [2,380 B]                                  
Get:12 http://archive.canonical.com/ubuntu xenial/partner amd64 Packages [3,124 B]                  
Get:13 http://archive.canonical.com/ubuntu xenial/partner i386 Packages [3,116 B]                   
Get:14 http://archive.canonical.com/ubuntu xenial/partner Translation-en [1,616 B]                                           
Get:15 http://archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]                                                                                        
Get:16 http://mirrors.aliyun.com/ubuntu xenial/main amd64 Packages [1,201 kB]                                                                               
Get:17 http://mirrors.aliyun.com/ubuntu xenial/main i386 Packages [1,196 kB]                                                                                
Get:18 http://mirrors.aliyun.com/ubuntu xenial/main Translation-en [568 kB]                                                                                 
Get:19 http://mirrors.aliyun.com/ubuntu xenial/restricted amd64 Packages [8,344 B]                                                                          
Get:20 http://mirrors.aliyun.com/ubuntu xenial/restricted i386 Packages [8,684 B]                                                                           
Get:21 http://mirrors.aliyun.com/ubuntu xenial/restricted Translation-en [2,908 B]                                                                          
Get:22 http://mirrors.aliyun.com/ubuntu xenial/universe amd64 Packages [7,532 kB]                                                                           
Get:23 http://mirrors.aliyun.com/ubuntu xenial/universe i386 Packages [7,512 kB]                                                                            
Get:24 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]                                                                                 
Get:25 http://mirrors.aliyun.com/ubuntu xenial/universe Translation-en [4,354 kB]                                                                           
Get:26 http://mirrors.aliyun.com/ubuntu xenial/multiverse amd64 Packages [144 kB]                                                                           
Get:27 http://mirrors.aliyun.com/ubuntu xenial/multiverse i386 Packages [140 kB]                                                                            
Get:28 http://mirrors.aliyun.com/ubuntu xenial/multiverse Translation-en [106 kB]                                                                           
Get:29 http://mirrors.aliyun.com/ubuntu xenial-updates/main Sources [287 kB]                                                                                
Get:30 http://mirrors.aliyun.com/ubuntu xenial-updates/restricted Sources [3,404 B]                                                                         
Get:31 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse Sources [7,968 B]                                                                         
Get:32 http://mirrors.aliyun.com/ubuntu xenial-updates/universe Sources [185 kB]                                                                            
Get:33 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 Packages [682 kB]                                                                         
Get:34 http://mirrors.aliyun.com/ubuntu xenial-updates/main i386 Packages [640 kB]                                                                          
Get:35 http://mirrors.aliyun.com/ubuntu xenial-updates/main Translation-en [285 kB]                                                                         
Get:36 http://mirrors.aliyun.com/ubuntu xenial-updates/restricted amd64 Packages [8,072 B]                                                                  
Get:37 http://mirrors.aliyun.com/ubuntu xenial-updates/restricted i386 Packages [8,100 B]                                                                   
Get:38 http://mirrors.aliyun.com/ubuntu xenial-updates/restricted Translation-en [2,672 B]                                                                  
Get:39 http://mirrors.aliyun.com/ubuntu xenial-updates/universe amd64 Packages [566 kB]                                                                     
Get:40 http://mirrors.aliyun.com/ubuntu xenial-updates/universe i386 Packages [530 kB]                                                                      
Get:41 http://mirrors.aliyun.com/ubuntu xenial-updates/universe Translation-en [229 kB]                                                                     
Get:42 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]                                                                  
Get:43 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse i386 Packages [15.3 kB]                                                                   
Get:44 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse Translation-en [8,052 B]                                                                  
Get:45 http://mirrors.aliyun.com/ubuntu xenial-backports/main Sources [3,436 B]                                                                             
Get:46 http://mirrors.aliyun.com/ubuntu xenial-backports/universe Sources [4,908 B]                                                                         
Get:47 http://mirrors.aliyun.com/ubuntu xenial-backports/main amd64 Packages [4,840 B]                                                                      
Get:48 http://mirrors.aliyun.com/ubuntu xenial-backports/main i386 Packages [4,832 B]                                                                       
Get:49 http://mirrors.aliyun.com/ubuntu xenial-backports/main Translation-en [3,220 B]                                                                      
Get:50 http://mirrors.aliyun.com/ubuntu xenial-backports/universe amd64 Packages [6,612 B]                                                                  
Get:51 http://mirrors.aliyun.com/ubuntu xenial-backports/universe i386 Packages [6,600 B]                                                                   
Get:52 http://mirrors.aliyun.com/ubuntu xenial-backports/universe Translation-en [3,768 B]                                                                  
Get:53 http://mirrors.aliyun.com/ubuntu xenial-security/main Sources [104 kB]                                                                               
Get:54 http://mirrors.aliyun.com/ubuntu xenial-security/restricted Sources [2,600 B]                                                                        
Get:55 http://mirrors.aliyun.com/ubuntu xenial-security/multiverse Sources [1,520 B]                                                                        
Get:56 http://mirrors.aliyun.com/ubuntu xenial-security/universe Sources [48.9 kB]                                                                          
Get:57 http://mirrors.aliyun.com/ubuntu xenial-security/main amd64 Packages [409 kB]                                                                        
Get:58 http://mirrors.aliyun.com/ubuntu xenial-security/main i386 Packages [373 kB]                                                                         
Get:59 http://mirrors.aliyun.com/ubuntu xenial-security/main Translation-en [180 kB]                                                                        
Get:60 http://mirrors.aliyun.com/ubuntu xenial-security/restricted amd64 Packages [7,472 B]                                                                 
Get:61 http://mirrors.aliyun.com/ubuntu xenial-security/restricted i386 Packages [7,472 B]                                                                  
Get:62 http://mirrors.aliyun.com/ubuntu xenial-security/restricted Translation-en [2,412 B]                                                                 
Get:63 http://mirrors.aliyun.com/ubuntu xenial-security/universe amd64 Packages [191 kB]                                                                    
Get:64 http://mirrors.aliyun.com/ubuntu xenial-security/universe i386 Packages [159 kB]                                                                     
Get:65 http://mirrors.aliyun.com/ubuntu xenial-security/universe Translation-en [99.1 kB]                                                                   
Get:66 http://mirrors.aliyun.com/ubuntu xenial-security/multiverse amd64 Packages [3,208 B]                                                                 
Get:67 http://mirrors.aliyun.com/ubuntu xenial-security/multiverse i386 Packages [3,384 B]                                                                  
Get:68 http://mirrors.aliyun.com/ubuntu xenial-security/multiverse Translation-en [1,408 B]                                                                 
Fetched 38.4 MB in 52s (736 kB/s)                                                                                                                           
Reading package lists... Done

发表评论
叁 加 贰 =
评论通过审核后显示。