ubuntu初始化配置

先备份/etc/apt/source.list,新建source.list,添加

1
2
3
4
5
6
7
8
deb http://mirrors.zju.edu.cn/ubuntu yakkety main universe restricted multiverse
deb http://mirrors.zju.edu.cn/ubuntu yakkety-security main universe restricted multiverse
deb http://mirrors.zju.edu.cn/ubuntu yakkety-updates main universe restricted multiverse
deb http://mirrors.zju.edu.cn/ubuntu yakkety-backports main universe restricted multiverse
deb-src http://mirrors.zju.edu.cn/ubuntu yakkety main universe restricted multiverse
deb-src http://mirrors.zju.edu.cn/ubuntu yakkety-security main universe restricted multiverse
deb-src http://mirrors.zju.edu.cn/ubuntu yakkety-updates main universe restricted multiverse
deb-src http://mirrors.zju.edu.cn/ubuntu yakkety-backports main universe restricted multiverse

apt-get update

安装gitlab
添加清华大学镜像

vim /etc/apt/source.list.d/gitlab-ce.list

1
deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu xenial main
我知道是不会有人点的,但万一有人想不开呢!