Linux如何更新软件源
Linux软件源的设置方法
1 打开数据源配置文件
vi /etc/apt/sources.list
添加相关的数据源,可以选择以下的数据源,不要写太多,否则会影响更新速度。
之后使用apt-get update更新源列表
为防止非官方源中软件包不全的问题,请在sources.list文件中尾部添加一组官方源。
#######################################
# 163
#######################################
deb http://mirrors.163.com/debian/ lenny main contrib non-free
deb-src http://mirrors.163.com/debian lenny main contrib non-free
deb http://mirrors.163.com/debian-security/ stable/updates main
deb-src http://mirrors.163.com/debian-security/ stable/updates main
#######################################
# official
#######################################
deb http://ftp.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.debian.org/debian/ lenny main contrib non-free
deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ stable/updates main
deb-src http://security.debian.org/ stable/updates main
deb http://volatile.debian.org/debian-volatile stable/volatile main
deb-src http://volatile.debian.org/debian-volatile stable/volatile main
#######################################
# 台湾及大陆教育网高校等
#######################################
deb http://ftp.tw.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.tw.debian.org/debian lenny main contrib non-free
deb http://mirrors.geekbone.org/debian/ lenny main contrib non-free
deb-src http://mirrors.geekbone.org/debian/ lenny main contrib non-free
deb http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free
deb-src http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free
deb http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free
deb-src http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free
### ustc debian-multimedia
deb http://debian.ustc.edu.cn/debian-multimedia/ stable main
deb-src http://debian.ustc.edu.cn/debian-multimedia/ stable main
### ustc debian-security
deb http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib
deb-src http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib
最新文章
- WPF - 属性系统 (4 of 4)
- Node.js大众点评爬虫
- Oracle组合索引与回表
- 三维网格补洞算法(Radial Basis Function)
- bat 炸弹升级
- Swift开发iOS应用过程中的问题和解决记录
- 简单选择排序(Java)
- 解决Cannot find or open the PDB file问题
- [Bhatia.Matrix Analysis.Solutions to Exercises and Problems]ExI.2.4
- POJ 1511 Invitation Cards dij
- hive union all 使用
- struts2系列笔记(1)
- request.getSession()几种获取情况之间的差异
- leetcode — letter-combinations-of-a-phone-number
- java正则表达式笔记
- 成功解决在Python文件上右键菜单无“Edit with IDLE”选项
- 仿饿了吗点餐界面两个ListView联动效果
- keyWindow与delegate中Window的区别
- day13 内置函数
- php的session存放数组