分页: 1 / 1
用了dnsmasq之后发现,apt-get update速度巨慢....(已解决)
发表于 : 2011-05-13 12:26
由 Dororo
什么原因?GUI的更新管理器却可以更新源,不过速度也是很慢,几KB/s而已
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-13 13:18
由 scutdk
好像是源的问题吧?404 Not Found
换个163的源试试
http://mirrors.163.com
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-13 15:37
由 rediscover
这是源的问题,换个别的试试看吧。
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-13 15:45
由 stephenjy
Dororo 写了:
什么原因?GUI的更新管理器却可以更新源,不过速度也是很慢,几KB/s而已
你好,我这边用没有问题,你能不能报告一下你的网络环境?例如是不是在学校或者公司里面,很多人从同一个IP出来的?我来诊断一下源有没有问题。
另外,你能不能贴一下你的source.list文件的内容?
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-13 16:20
由 Dororo
deb
http://ftp.jaist.ac.jp/pub/Linux/LinuxMint/ debian main upstream import
# deb
http://ftp.debian.org/debian/ testing main contrib non-free
# deb
http://security.debian.org/ testing/updates main contrib non-free
deb
http://www.debian-multimedia.org/ testing main non-free
deb
http://mirrors.163.com/debian/ testing main non-free contrib
deb
http://mirrors.163.com/debian/ testing-proposed-updates main contrib non-free
# deb
http://mirrors.163.com/debian-security/ testing/updates main contrib non-free
# deb
http://mirrors.ustc.edu.cn/debian/ testing main contrib non-free
deb-src
http://mirrors.ustc.edu.cn/debian/ testing main contrib non-free
# deb
http://mirrors.ustc.edu.cn/debian-security/ testing/updates main non-free
deb-src
http://mirrors.ustc.edu.cn/debian-security/ testing/updates main non-free
# deb
http://mirrors.ustc.edu.cn/debian-multimedia/ testing main non-free
deb-src
http://mirrors.ustc.edu.cn/debian-multimedia/ testing main non-free
我的网络环境是联通的2M小水管,以上是source.list文件内容,已经取消了中科大的源了,由于是mint版的debian,所以第一个是mint的源。
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-13 17:04
由 zxc
其余网络应用呢?
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-13 18:29
由 Dororo
zxc 写了:其余网络应用呢?
暂时没发现有其他问题呢,下载什么的都没问题,唯一发觉的就是更新源的速度明显变慢了。700B/s 0秒
ps:dnsmasq的缓存放在哪里的?
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-13 18:36
由 stephenjy
试试用下面的内容替换:
代码: 全选
deb http://mirrors.ustc.edu.cn/debian/ testing main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian/ testing main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ testing/updates main non-free
deb-src http://mirrors.ustc.edu.cn/debian-security/ testing/updates main non-free
deb http://mirrors.ustc.edu.cn/debian-multimedia/ testing main non-free
deb-src http://mirrors.ustc.edu.cn/debian-multimedia/ testing main non-free
deb http://mirrors.ustc.edu.cn/linuxmint/ debian main upstream import
deb-src http://mirrors.ustc.edu.cn/linuxmint/ debian main upstream import
看看是否报错。
debian-multimedia, debian-security, linuxmint mirrors.ustc上都有。
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-13 19:21
由 Dororo
@stephenjy
下载 12.7 MB,耗时 2分 11秒 (96.4 kB/s)
正在读取软件包列表... 完成
似乎稳定下来了,多谢关注。
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-13 22:48
由 Dororo
另外,教程说的要把networkmanager里的dns地址设为127.0.0.1,这个设置在我这里不行,完全不能解析网址。要设为这样:127.0.0.1,8.8.8.8
才行
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-13 22:52
由 Dororo
有个疑问:apt-get update第二次是不是比第一次慢的,因为要下载的东西少了。
第一次:
下载 12.7 MB,耗时 2分 0秒 (105 kB/s)
正在读取软件包列表... 完成
第二次:
下载 19.6 kB,耗时 1分 32秒 (212 B/s)
正在读取软件包列表... 完成
Re: 用了dnsmasq之后发现,apt-get update速度巨慢....(未解决)
发表于 : 2011-05-14 14:09
由 stephenjy
Dororo 写了:有个疑问:apt-get update第二次是不是比第一次慢的,因为要下载的东西少了。
第一次:
下载 12.7 MB,耗时 2分 0秒 (105 kB/s)
正在读取软件包列表... 完成
第二次:
下载 19.6 kB,耗时 1分 32秒 (212 B/s)
正在读取软件包列表... 完成
第二次update实际上不会下载任何数据,只是访问一下服务器上的文件,如果时间戳相同就不再下载了。
感觉你配的DNSMasq有问题。你把sources.list中mirrors.ustc.edu.cn都换成IP试试看。IP用下面这个命令输出的:
代码: 全选
dig +short mirrors.ustc.edu.cn