图形界面配置
新手推荐使用图形界面配置: 系统设置 -> 软件和更新 选择下载服务器 -> "mirrors.aliyun.com"
手动更改
用你熟悉的编辑器打开:
/etc/apt/sources.list
替换默认的
http://archive.ubuntu.com/
为
mirrors.aliyun.com
以Ubuntu 14.04.5 LTS为例,最后的效果如下:
- deb https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
- deb https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
-
- deb https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
-
- deb https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
-
- ## Not recommended
- # deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
- # deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
-
ubuntu 16.04 配置如下
- deb https://mirrors.aliyun.com/ubuntu/ xenial main
- deb-src https://mirrors.aliyun.com/ubuntu/ xenial main
-
- deb https://mirrors.aliyun.com/ubuntu/ xenial-updates main
- deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates main
-
- deb https://mirrors.aliyun.com/ubuntu/ xenial universe
- deb-src https://mirrors.aliyun.com/ubuntu/ xenial universe
- deb https://mirrors.aliyun.com/ubuntu/ xenial-updates universe
- deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates universe
-
- deb https://mirrors.aliyun.com/ubuntu/ xenial-security main
- deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security main
- deb https://mirrors.aliyun.com/ubuntu/ xenial-security universe
- deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security universe
-
ubuntu 18.04(bionic) 配置如下
- deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
-
- deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
-
- deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
-
- # deb https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
- # deb-src https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
-
- deb https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
-
ubuntu 20.04(focal) 配置如下
- deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
-
- deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
-
- deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
-
- # deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
- # deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
-
- deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
- deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
-
相关链接
- 官方主页: http://www.ubuntu.com/
- 邮件列表: http://www.ubuntu.com/support/community/mailinglists
- 论坛: http://ubuntuforums.org/
- 中文论坛: http://forum.ubuntu.org.cn/
- Wiki: https://wiki.ubuntu.com/
- 帮助: https://help.ubuntu.com/
Ubuntu 镜像
简介
Ubuntu,是一款基于Debian Linux的以桌面应用为主的操作系统,内容涵盖文字处理、电子邮件、软件开发工具和Web服务等,可供用户免费下载、使用和分享。
下载地址: https://mirrors.aliyun.com/ubuntu/
相关仓库
- Ubuntu安装源(ubuntu-releases): https://developer.aliyun.com/mirror/ubuntu-releases
- Ubuntu ARM源(ubuntu-ports): https://developer.aliyun.com/mirror/ubuntu-ports
- Ubuntu过期源(oldubuntu-releases): https://developer.aliyun.com/mirror/oldubuntu-releases
- Ubuntu其他架构安装镜像(ubuntu-cdimage): https://developer.aliyun.com/mirror/ubuntu-cdimage
配置方法
域名说明
对于阿里云ECS用户,需要将配置文件中 https://mirrors.aliyun.com/ 替换成 http://mirrors.cloud.aliyuncs.com/ 进行使用
- sed-i 's/https:\/\/mirrors.aliyun.com/http:\/\/mirrors.cloud.aliyuncs.com/g' /etc/apt/sources.list
-