1.在安装Ubuntu系统时候我们已经安装了ssh服务,所以直接xshell连接到ubuntu
2.下面进行apt-get源配置
注意:我们平时修改配置文件时候一定要先备份下原来的配置文件
- 备份源:
zzq@ubuntu:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
- 配置源:
zzq@ubuntu:~$ sudo vim /etc/apt/sources.list
首先清空里面得到所有内容
然后写上国内比较好的源:中科大源、阿里源
#中科大源:
deb [http://debian.ustc.edu.cn/ubuntu/](http://debian.ustc.edu.cn/ubuntu/) trusty main restricted universe multiverse
deb [http://debian.ustc.edu.cn/ubuntu/](http://debian.ustc.edu.cn/ubuntu/) trusty-security main restricted universe multiverse
deb [http://debian.ustc.edu.cn/ubuntu/](http://debian.ustc.edu.cn/ubuntu/) trusty-updates main restricted universe multiverse
deb [http://debian.ustc.edu.cn/ubuntu/](http://debian.ustc.edu.cn/ubuntu/) trusty-proposed main restricted universe multiverse
deb [http://debian.ustc.edu.cn/ubuntu/](http://debian.ustc.edu.cn/ubuntu/) trusty-backports main restricted universe multiverse
deb-src [http://debian.ustc.edu.cn/ubuntu/](http://debian.ustc.edu.cn/ubuntu/) trusty main restricted universe multiverse
deb-src [http://debian.ustc.edu.cn/ubuntu/](http://debian.ustc.edu.cn/ubuntu/) trusty-security main restricted universe multiverse
deb-src [http://debian.ustc.edu.cn/ubuntu/](http://debian.ustc.edu.cn/ubuntu/) trusty-updates main restricted universe multiverse
deb-src [http://debian.ustc.edu.cn/ubuntu/](http://debian.ustc.edu.cn/ubuntu/) trusty-proposed main restricted universe multiverse
deb-src [http://debian.ustc.edu.cn/ubuntu/](http://debian.ustc.edu.cn/ubuntu/) trusty-backports main restricted universe multiverse
#阿里源:
deb [http://mirrors.aliyun.com/ubuntu/](http://mirrors.aliyun.com/ubuntu/) trusty main multiverse restricted universe
deb [http://mirrors.aliyun.com/ubuntu/](http://mirrors.aliyun.com/ubuntu/) trusty-backports main multiverse restricted universe
deb [http://mirrors.aliyun.com/ubuntu/](http://mirrors.aliyun.com/ubuntu/) trusty-proposed main multiverse restricted universe
deb [http://mirrors.aliyun.com/ubuntu/](http://mirrors.aliyun.com/ubuntu/) trusty-security main multiverse restricted universe
deb [http://mirrors.aliyun.com/ubuntu/](http://mirrors.aliyun.com/ubuntu/) trusty-updates main multiverse restricted universe
deb-src [http://mirrors.aliyun.com/ubuntu/](http://mirrors.aliyun.com/ubuntu/) trusty main multiverse restricted universe
deb-src [http://mirrors.aliyun.com/ubuntu/](http://mirrors.aliyun.com/ubuntu/) trusty-backports main multiverse restricted universe
deb-src [http://mirrors.aliyun.com/ubuntu/](http://mirrors.aliyun.com/ubuntu/) trusty-proposed main multiverse restricted universe
deb-src [http://mirrors.aliyun.com/ubuntu/](http://mirrors.aliyun.com/ubuntu/) trusty-security main multiverse restricted universe
deb-src [http://mirrors.aliyun.com/ubuntu/](http://mirrors.aliyun.com/ubuntu/) trusty-updates main multiverse restricted universe
- 升级源:
首先更新软件列表
zzq@ubuntu:~$ sudo apt-get update
然后更新软件
zzq@ubuntu:~$ sudo apt-get upgrade
此时ubuntu源配置就OK了!