Ubuntu 如何更换阿里源
#进入源地址
cd /etc/apt
#备份源文件
sudo cp sources.list sources.list.bak
#编辑
sudo vim /etc/apt/sources.list
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-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
#更新源
sudo apt-get update
#更新软件
sudo apt-get upgrade
ps:
1、系统中没有 vim 时,sudo apt-get install vim-gtk
2、修改系统时间 执行tzselect命令-->选择Asia-->选择China--> Beijing
执行cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime,用 date 查看
参考:
https://blog.csdn.net/chen472015439/article/details/77327520
https://blog.csdn.net/u013399093/article/details/48030103