Linux学习笔记——Ubuntu更新软件源
0.前言
通过修改ubuntu软件源可提高apt命令下载安装软件的速度。
参考资料
【官方资料】——配置文件修改方法
【Ubuntu怎样修改软件源地址】——使用ubuntu软件中心修改(推荐)
【at-get update错误处理】
1.使用ubuntu软件中心更新
请参考【Ubuntu怎样修改软件源地址】——来自百度经验
图1 打开软件和更新
图2 选择国内软件源
2.使用指令方法修改
【1】首先备份源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
【2】gedit打开 并替换所有内容
sudo gedit /etc/apt/sources.list
【2.1】 若ubunt版本为13.04
【163源】
deb http://mirrors.163.com/ubuntu/ raring main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ raring-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ raring-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ raring-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ raring main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ raring-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ raring-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ raring-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ raring-backports main restricted universe multiverse
【阿里云源】
deb http://mirrors.aliyun.com/ubuntu/ raring main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ raring-security main restricted universe multiverse
deb http://mirrors.aliyun.co