ubuntu上网有时断线

上网、浏览、聊天、下载等
回复
ubuntu天王
帖子: 16
注册时间: 2008-10-19 11:58
送出感谢: 0
接收感谢: 0

ubuntu上网有时断线

#1

帖子 ubuntu天王 » 2008-10-19 23:20

我的ubuntu是刚装上去的 用着还行
我看了firefox优化策略 如下文
默认的中国源速度非常不错,为了保证源内软件的齐全,建议电信用户添加 cn99 或台湾大
学的源,建议网通用户添加 UBNTU 官方或台湾大学的源。

在终端输入并运行
(备份当前的源列表,
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
以便日後需要时恢复)
(修改 sources.list 文件中源的列表)
sudo gedit /etc/apt/sources.list
弹出类似如图文本
然后在 sources.list 文件中尾部添加
#cn99.com 源更新服务器(江苏省常州市电信,推荐电信用户使用,我自己是南方电信 1M
带宽的用户,更新速度平均有 100K):
### Ubuntu.cn99.com 更新服务器(江苏省常州市电信,推荐电信用户使用。)
deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe
multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe
multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe
multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe
multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe
multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe
multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe
multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe
multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ hardy main restricted universe multiverse
#Mirror.lupaworld.com 源更新服务器(浙江省杭州市双线服务器,网通同电信都可以用,
亚洲地区官方更新服务器):
deb http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe
multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe
multiverse
deb http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe
multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy main restricted universe
multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-security main restricted
universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-updates main restricted
universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu hardy-backports main restricted
universe multiverse
Ubuntu 官方源 推荐北方网通用户添加
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe
multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe
multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe
multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe
multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe
multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted
universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe
multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted
universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted
universe multiverse
台湾的官方源速度也相当不错,有时甚至快于内地的:
deb http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe
multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe
multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe
multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe
multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe
multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe
multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted
universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted
universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted
universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted
universe multiverse
小贴士:只需上述几个源当中保留一个你测试出来下载速度最快的源就可以了,不用把所有
源添加,添加完国内源之后,当然最好还是在国内源后面再添加一个官方的源了:
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe
multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe
multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe
multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe
multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe
multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted
universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe
multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted
universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted
universe multiverse
然后 保存编辑好的文件,终端执行以下命令进行软件升级。
sudo apt-get update #这一步是更新你的源列表,换源後必须执行
(如果更新速度非常慢请更换源 sudo gedit /etc/apt/sources.list )
sudo apt-get upgrade #这一步是更新软件
更新完软件后,再继续设置吧。
有时你可能需要使用:sudo apt-get -f install 来修复安装
结果弄完后感觉也不是很快 而且出现上不了网的情况 我是电信的用户
请问怎么作能让网络连接更稳定
谢谢拉
回复

回到 “因特网相关软件”