Ubuntu 服务器配置
版本:Ubuntu 16.04
配置 apt 源
apt 是 ubuntu 系统内置的软件包管理工具,源默认是国外的,访问速度受限,所以第一步先更换源地址为国内源。
apt 源配置文件在: /etc/apt/sources.list
,里面存的就是安装软件下载软件的地址信息,只要更换这些地址信息即可。为了防止地址写错崩溃,可以先备份一份原 sources.list
文件:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
1.阿里源:
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricte