chechunli@chechunli-PC:~ $ sudo aptitude install emacs
The following NEW packages will be installed:
emacs emacs23{a} emacs23-bin-common{a} emacs23-common{a} emacsen-common{a} libanthy0{a} libgif4{a} libm17n-0{a} libotf0{a} m17n-contrib{a} m17n-db{a}
0 packages upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 26.6MB of archives. After unpacking 82.7MB will be used.
Do you want to continue? [Y/n/?] Y
Err maverick/main emacsen-common all 1.4.19ubuntu1
Could not connect to cn.archive.ubuntu.com:80 (123.129.214.98). - connect (111: Connection refused)
Err maverick/main emacs23-common all 23.1+1-4ubuntu7
Unable to connect to cn.archive.ubuntu.com:http:
Err maverick/main emacs23-bin-common i386 23.1+1-4ubuntu7
Unable to connect to cn.archive.ubuntu.com:http:
Err maverick/main libgif4 i386 4.1.6-9
Unable to connect to cn.archive.ubuntu.com:http:
Err maverick/main libanthy0 i386 9100h-6ubuntu1
Unable to connect to cn.archive.ubuntu.com:http:
Err maverick/main libotf0 i386 0.9.10-1
Unable to connect to cn.archive.ubuntu.com:http:
Err maverick/main libm17n-0 i386 1.5.5-1
Unable to connect to cn.archive.ubuntu.com:http:
Err maverick/main emacs23 i386 23.1+1-4ubuntu7
Unable to connect to cn.archive.ubuntu.com:http:
Err maverick/main emacs all 23.1+1-4ubuntu7
Unable to connect to cn.archive.ubuntu.com:http:
Err maverick/main m17n-db all 1.5.5-1
Unable to connect to cn.archive.ubuntu.com:http:
Err maverick/main m17n-contrib all 1.1.10-1
Unable to connect to cn.archive.ubuntu.com:http:
E: Failed to fetch pool/main/e/emacsen-common/emacsen-common_1.4.19ubuntu1_all.deb: Could not connect to cn.archive.ubuntu.com:80 (123.129.214.98). - connect (111: Connection refused)
解决办法:
chechunli@chechunli-PC:apt $ sudo mv sources.list sources.list_bak
root@chechunli-PC:apt # cat /home/chechunli/sources.list
#Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):
deb maverick main restricted universe multiverse
deb maverick-security main restricted universe multiverse
deb maverick-updates main restricted universe multiverse
deb maverick-proposed main restricted universe multiverse
deb maverick-backports main restricted universe multiverse
deb-src maverick main restricted universe multiverse
deb-src maverick-security main restricted universe multiverse
deb-src maverick-updates main restricted universe multiverse
deb-src maverick-proposed main restricted universe multiverse
deb-src maverick-backports main restricted universe multiverse
#骨头兄亲自搭建并维护这个Ubuntu源(该源位于浙江杭州百兆共享宽带的电信机房):
deb maverick main restricted universe multiverse
deb maverick-security main restricted universe multiverse
deb maverick-updates main restricted universe multiverse
deb maverick-proposed main restricted universe multiverse
deb maverick-backports main restricted universe multiverse
deb-src maverick main restricted universe multiverse
deb-src maverick-security main restricted universe multiverse
deb-src maverick-updates main restricted universe multiverse
deb-src maverick-proposed main restricted universe multiverse
deb-src maverick-backports main restricted universe multiverse
#网易163更新服务器:
deb maverick main restricted universe multiverse
deb maverick-security main restricted universe multiverse
deb maverick-updates main restricted universe multiverse
deb maverick-proposed main restricted universe multiverse
deb maverick-backports main restricted universe multiverse
deb-src maverick main restricted universe multiverse
deb-src maverick-security main restricted universe multiverse
deb-src maverick-updates main restricted universe multiverse
deb-src maverick-proposed main restricted universe multiverse
deb-src maverick-backports main restricted universe multiverse
#sohu 更新服务器:
deb maverick main restricted universe multiverse
deb maverick-security main restricted universe multiverse
deb maverick-updates main restricted universe multiverse
deb maverick-proposed main restricted universe multiverse
deb maverick-backports main restricted universe multiverse
deb-src maverick main restricted universe multiverse
deb-src maverick-security main restricted universe multiverse
deb-src maverick-updates main restricted universe multiverse
deb-src maverick-proposed main restricted universe multiverse
deb-src maverick-backports main restricted universe multiverse
#Mirrors.shlug.org更新服务器(电信服务器,Ubuntu China Official Mirror, maintained by Shanghai Linux User Group):
deb maverick main restricted universe multiverse
deb maverick-security main restricted universe multiverse
deb maverick-updates main restricted universe multiverse
deb maverick-backports main restricted universe multiverse
deb maverick-proposed main restricted universe multiverse
deb-src maverick main restricted universe multiverse
deb-src maverick-security main restricted universe multiverse
deb-src maverick-updates main restricted universe multiverse
deb-src maverick-backports main restricted universe multiverse
deb-src maverick-proposed main restricted universe multiverse
#Mirror.lupaworld.com更新服务器(浙江省杭州市双线服务器):
deb maverick main restricted universe multiverse
deb maverick-security main restricted universe multiverse
deb maverick-updates main restricted universe multiverse
deb maverick-backports main restricted universe multiverse
deb maverick-proposed main restricted universe multiverse
deb-src maverick main restricted universe multiverse
deb-src maverick-security main restricted universe multiverse
deb-src maverick-updates main restricted universe multiverse
deb-src maverick-backports main restricted universe multiverse
deb-src maverick-proposed main restricted universe multiverse
#厦门大学更新服务器(教育网服务器):
deb ftp://ubuntu.realss.cn/ubuntu/ maverick main restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ maverick-backports restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ maverick-proposed main restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ maverick-security main restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ maverick-updates main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ maverick main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ maverick-backports main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ maverick-security main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ maverick-updates main restricted universe multiverse
#成都市 电子科技大学更新服务器(教育网,推荐校园网和网通用户使用):
deb maverick main multiverse restricted universe
deb maverick-backports main multiverse restricted universe
deb maverick-proposed main multiverse restricted universe
deb maverick-security main multiverse restricted universe
deb maverick-updates main multiverse restricted universe
deb-src maverick main multiverse restricted universe
deb-src maverick-backports main multiverse restricted universe
deb-src maverick-proposed main multiverse restricted universe
deb-src maverick-security main multiverse restricted universe
deb-src maverick-updates main multiverse restricted universe
#== 如果无法解析uestc.edu.cn域名,请使用以下地址 ==
deb maverick main multiverse restricted universe
deb maverick-backports main multiverse restricted universe
deb maverick-proposed main multiverse restricted universe
deb maverick-security main multiverse restricted universe
deb maverick-updates main multiverse restricted universe
deb-src maverick main multiverse restricted universe
deb-src maverick-backports main multiverse restricted universe
deb-src maverick-proposed main multiverse restricted universe
deb-src maverick-security main multiverse restricted universe
deb-src maverick-updates main multiverse restricted universe
#上海市上海交通大学更新服务器:
deb maverick main multiverse restricted universe
deb maverick-backports main multiverse restricted universe
deb maverick-proposed main multiverse restricted universe
deb maverick-security main multiverse restricted universe
deb maverick-updates main multiverse restricted universe
deb-src maverick main multiverse restricted universe
deb-src maverick-backports main multiverse restricted universe
deb-src maverick-proposed main multiverse restricted universe
deb-src maverick-security main multiverse restricted universe
deb-src maverick-updates main multiverse restricted universe
#中国科学技术大学更新服务器:
deb maverick main multiverse restricted universe
deb maverick-backports main multiverse restricted universe
deb maverick-proposed main multiverse restricted universe
deb maverick-security main multiverse restricted universe
deb maverick-updates main multiverse restricted universe
deb-src maverick main multiverse restricted universe
deb-src maverick-backports main multiverse restricted universe
deb-src maverick-proposed main multiverse restricted universe
deb-src maverick-security main multiverse restricted universe
deb-src maverick-updates main multiverse restricted universe
#中国地质大学(北京)更新服务器:
deb maverick main restricted universe multiverse
deb maverick-security main restricted universe multiverse
deb maverick-updates main restricted universe multiverse
deb maverick-proposed main restricted universe multiverse
deb maverick-backports main restricted universe multiverse
deb-src maverick main restricted universe multiverse
deb-src maverick-security main restricted universe multiverse
deb-src maverick-updates main restricted universe multiverse
deb-src maverick-proposed main restricted universe multiverse
deb-src maverick-backports main restricted universe multiverse
#中国** **大学更新服务器(推荐网通用户使用,电信PING平均响应速度41MS。强烈推荐此源,比较完整,较少出现同步问题):
deb maverick main restricted universe multiverse
deb-src maverick main restricted universe multiverse
deb maverick-updates main restricted universe multiverse
deb-src maverick-updates main restricted universe multiverse
deb maverick-backports main restricted universe multiverse
deb-src maverick-backports main restricted universe multiverse
deb maverick-security main restricted universe multiverse
deb-src maverick-security main restricted universe multiverse
deb maverick-proposed main multiverse restricted universe
deb-src maverick-proposed main restricted universe multiverse
#mirror.rootguide.org更新服务器(上海市 电信):
deb maverick main restricted universe multiverse
deb-src maverick main restricted universe multiverse
deb maverick-updates main restricted universe multiverse
deb-src maverick-updates main restricted universe multiverse
deb maverick-backports main restricted universe multiverse
deb-src maverick-backports main restricted universe multiverse
deb maverick-security main restricted universe multiverse
deb-src maverick-security main restricted universe multiverse
deb maverick-proposed main multiverse restricted universe
deb-src maverick-proposed main restricted universe multiverse
#**的官方源速度也相当不错,有时甚至快于内地的:
deb maverick main restricted universe multiverse
deb maverick-security main restricted universe multiverse
deb maverick-updates main restricted universe multiverse
deb maverick-backports main restricted universe multiverse
deb maverick-proposed main restricted universe multiverse
deb-src maverick main restricted universe multiverse
deb-src maverick-security main restricted universe multiverse
deb-src maverick-updates main restricted universe multiverse
deb-src maverick-backports main restricted universe multiverse
deb-src maverick-proposed main restricted universe multiverse
#以下源支持IPV6,推荐可以使用IPV6的教育网用户使用,速度在200kb/s左右,如需源代码,将deb替换成deb-src即可
deb maverick main multiverse restricted universe
deb maverick-backports main multiverse restricted universe
deb maverick-proposed main multiverse restricted universe
deb maverick-security main multiverse restricted universe
deb maverick-updates main multiverse restricted universe
deb maverick main multiverse restricted universe
deb maverick-backports main multiverse restricted universe
deb maverick-proposed main multiverse restricted universe
deb maverick-security main multiverse restricted universe
deb maverick-updates main multiverse restricted universe
deb maverick main multiverse restricted universe
deb maverick-backports main multiverse restricted universe
deb maverick-proposed main multiverse restricted universe
deb maverick-security main multiverse restricted universe
deb maverick-updates main multiverse restricted universe
source.list 文件网上多得是,我这个是从一个对这个东西有研究人的论坛里拿来的。
root@chechunli-PC:apt # mv /home/chechunli/sources.list .
chechunli@chechunli-PC:~ $ sudo aptitude install emacs
OK