昨天晚上写了
<<新手初解apt的源[附:各发行版信息和镜像目录的说明]>>
,于是萌生了自己学习加入源的想法,今天上学校FTP的时候,发现学校FTP上居然做上了archive.ubuntu.com镜像,
先上我们学校的FTP,找到ubuntu软件库的位置:ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu
然后:
#sudo vi /etc/apt/source.list
在较前边的位置中加入下边的这几段:
#NEU sources
deb ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu dapper main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu dapper-proposed main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu dapper-backports main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu dapper-security main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu dapper-updates main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu dapper main multiverse restricted universe
#NEU end
接着:
#sudo apt-get update
大功告成!!
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/21355/showart_139208.html