现在的位置: 首页 > 综合 > 正文

教育网里的Debian/Ubuntu升级源

2012年07月18日 ⁄ 综合 ⁄ 共 886字 ⁄ 字号 评论关闭
Ubuntu的升级方法和Debian完全一样,只是多了一个更漂亮的GUI供你选择。但是,对于教育网的用户来说,不能直接访问国外的Ubuntu或是Debian源,哪怕是用代理或是教育网直通车之类的玩意,也是很慢的。不过没关系,国内很多大学都提供了Debian的源镜像,我们可以自己添加教育网里的镜像源。
在终端执行以下命令(第一条是备份现有服务器列表,第二条是使用Vim编辑)
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup sudo vim /etc/apt/sources.list

从下面各服务器列表内容中选择一个镜像源,添加到文件里去:
教育网常用sources.list(以下只适用于sid即unstable用户,其它版本用户请酌情更改) 中科大 deb ftp://debian.ustc.edu.cn/debian unstable main non-free contrib deb-src ftp://debian.ustc.edu.cn/debian unstable main non-free contrib 大连理工 deb ftp://mirror.dlut.edu.cn/debian unstable main non-free contrib deb-src ftp://mirror.dlut.edu.cn/debian unstable main non-free contrib 清华大学 deb ftp://ftp.tsinghua.edu.cn/mirror/debian/debian unstable main non-free contrib deb-src ftp://ftp.tsinghua.edu.cn/mirror/debian/debian unstable main non-free contrib

保存编辑好的文件,执行以下命令就可以进行更新:
sudo apt-get update sudo apt-get dist-upgrade

用了这几个源之后,在教育网里,可以很方便地用sudo apt-get install安装你需要的包与软件,速度很快。

抱歉!评论已关闭.