本帖最后由 柠檬守护 于 2016-2-16 17:55 编辑
很高兴能够担任本版块的版主,谢谢论坛管理员的信任,我想版块的发展离不开众多坛友的支持,小弟不才,虽然也是菜鸟一只,但是希望做一个引路人,希望大家可以在Linux的世界里收获自己需要的东西,后续会以某一些linux入门书籍为主,推出我们一起学Linux系列贴,希望大家能够同我一起,壮大Linux版块
- Linux版本众多,目前我使用的版本为Ubuntu14.04 Kylin,因为不喜欢也不习惯双系统的使用,所以选择使用虚拟机来进行Linux相关内容的学习,欢迎大家一起来交流哦
【我们一起学Linux之准备篇】Linux source更新
在linux中安装软件,与windows有些差异,此篇在坛子里也有坛友分享,后续会收录进来,此篇文档主要是分享我们在安装软件的时候,会发现对应的软件找不到的状况,在这里就需要我们更新一下Linux的source源了,方便系统去对应的源下载我们需要的软件。
1.备份源
- # cp /etc/source.list /etc/apt/source.list.backup
复制代码
2. 编辑源
- # vim /etc/apt/source.list
复制代码
3. 替换合适的源
- 部分源地址
- 阿里云服务器(杭州电信/网通双网)
- deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
- deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
- deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
- deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
- deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
- 网易163服务器(广州电信/网通双网)
- deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
- 搜狐服务器(山东网通)
- deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
- deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
- deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
- deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
- deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
- 10.04 将源中的trusty替换为 lucid 即可
- 12.04 将源中的trusty替换为 precise 即可
复制代码
4. 更新
注意: 如果提示权限问题,请加上sudo 更改为root权限即可。
0
|
|
|
|
回帖奖励 +1 分积分
我是被回复奖励吸引来的
|
|
|
|
|
谢谢赏脸, 后面也希望多捧场啊~
|
|
|
|
|
多来捧场啊~
|
|
|
|
|