LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 837|回复: 1

apt-proxy服务器无法更新ubuntu dapper

[复制链接]
发表于 2006-9-27 00:22:16 | 显示全部楼层 |阅读模式
我们学校使用的是网通服务器更新源,速度是超级慢.
终于在大家的支持下开始逐步测试apt-proxy.
============================
Debian server
建立APT-PROXY服务
能更新debian 和ubuntu breezy.
但是更新ubuntu dapper 出现
connect failed
在服务端检测到客户机已经连上该端口
在 /var/cache/apt-proxy 的ubuntu文件夹中也没有相应的dapper 只有breezy
但是在ubuntu breezy客户端直接使用外网源能更新

即将投入使用,但是不知道为什么会出现这个情况.

其中与ubuntu 相关配置
[ubuntu]
;; Ubuntu archive
backends =
http://ubuntu.cn99.com/ubuntu
http://ftp.sjtu.edu.cn/ubuntu
http://mirror.lupaworld.com/ubuntu/archive
http://cn.archive.ubuntu.com/ubuntu
[ubuntu-cn]
backends =
http://ubuntu.cn.99.com/ubuntu-cn
http://ftp.sjtu.edu.cn/ubuntu-cn

[ubuntu-security]
;; Ubuntu security updates
backends = http://security.ubuntu.com/ubuntu
 楼主| 发表于 2006-9-27 09:39:20 | 显示全部楼层

更新dapper时apt-proxy 产生的日志

2006/09/26 22:07 CST [-] Log opened.
2006/09/26 22:07 CST [-] twistd 1.3.0rc1 (/usr/bin/python2.3 2.3.5) starting up
2006/09/26 22:07 CST [-] reactor class: twisted.internet.default.SelectReactor
2006/09/26 22:07 CST [-] Loading /usr/sbin/apt-proxy...
2006/09/26 22:07 CST [-] Updating twisted's process module.
2006/09/26 22:07 CST [-] No updating required.
2006/09/26 22:07 CST [-] [log] WARNING: [debian-non-US] has no backend servers (skiped)
2006/09/26 22:07 CST [-] Loaded.
2006/09/26 22:07 CST [-] apt_proxy.apt_proxy.Factory starting on 9999
2006/09/26 22:07 CST [-] Starting factory <apt_proxy.apt_proxy.Factory instance at 0x40511bec>
2006/09/26 22:07 CST [-] set uid/gid 103/65534
2006/09/26 22:42 CST [Channel,0,192.168.3.26] [debug] Headers: Host: 192.168.3.238:9999, Cache-Control: max-age=0, User-Agent: Debian APT-HTTP/1.3
2006/09/26 22:42 CST [Channel,0,192.168.3.26] [debug] Request: GET http://192.168.3.238:9999/ubuntu/dists/dapper/Release.gpg
2006/09/26 22:42 CST [Channel,0,192.168.3.26] [debug] Adding ttp: backend dynamicaly
2006/09/26 22:42 CST [Channel,0,192.168.3.26] [debug] Created new BackendServer: http://ttp:
2006/09/26 22:42 CST [Channel,0,192.168.3.26] Unhandled error in Deferred:
2006/09/26 22:42 CST [Channel,0,192.168.3.26] Traceback (most recent call last):
          File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 557, in requestReceived
            self.process()
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1375, in process
            self.fetch()
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1454, in fetch
            (dummyFetcher, 0, running,), None)
          File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 205, in addCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 338, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1422, in fetch_real
            fetcher = dummyFetcher.apEndTransfer(fetcher_class)
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 463, in apEndTransfer
            fetcher = fetcher_class(req)
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 317, in __init__
            self.activate(request)
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 573, in activate
            ClientFactory(self), request.backend.timeout)
          File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line 289, in connectTCP
            c = tcp.Connector(host, port, factory, timeout, bindAddress, self)
          File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 708, in __init__
            raise error.ServiceNameUnknownError(string=str(e))
        twisted.internet.error.ServiceNameUnknownError: Service name given as port is unknown: service/proto not found.
       
2006/09/26 22:44 CST [Channel,0,192.168.3.26] [debug] Client connection closed
2006/09/26 22:44 CST [Channel,1,192.168.3.26] [debug] Headers: Host: 192.168.3.238:9999, Cache-Control: max-age=0, User-Agent: Debian APT-HTTP/1.3
2006/09/26 22:44 CST [Channel,1,192.168.3.26] [debug] Request: GET http://192.168.3.238:9999/ubuntu/dists/dapper/Release.gpg
2006/09/26 22:44 CST [Channel,1,192.168.3.26] [debug] Adding ttp: backend dynamicaly
2006/09/26 22:44 CST [Channel,1,192.168.3.26] [debug] Created new BackendServer: http://ttp:
2006/09/26 22:46 CST [Channel,1,192.168.3.26] [debug] Client connection closed
2006/09/26 22:46 CST [Channel,2,192.168.3.26] [debug] Headers: Host: 192.168.3.238:9999, Cache-Control: max-age=0, User-Agent: Debian APT-HTTP/1.3
2006/09/26 22:46 CST [Channel,2,192.168.3.26] [debug] Request: GET http://192.168.3.238:9999/ubuntu ... ckports/Release.gpg
2006/09/26 22:46 CST [Channel,2,192.168.3.26] [debug] Adding ttp: backend dynamicaly
2006/09/26 22:46 CST [Channel,2,192.168.3.26] [debug] Created new BackendServer: http://ttp:
2006/09/26 22:46 CST [Channel,2,192.168.3.26] Unhandled error in Deferred:
2006/09/26 22:46 CST [Channel,2,192.168.3.26] Traceback (most recent call last):
          File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 557, in requestReceived
            self.process()
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1375, in process
            self.fetch()
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1454, in fetch
            (dummyFetcher, 0, running,), None)
          File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 205, in addCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 338, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1422, in fetch_real
            fetcher = dummyFetcher.apEndTransfer(fetcher_class)
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 463, in apEndTransfer
            fetcher = fetcher_class(req)
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 317, in __init__
            self.activate(request)
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 573, in activate
            ClientFactory(self), request.backend.timeout)
          File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line 289, in connectTCP
            c = tcp.Connector(host, port, factory, timeout, bindAddress, self)
          File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 708, in __init__
            raise error.ServiceNameUnknownError(string=str(e))
        twisted.internet.error.ServiceNameUnknownError: Service name given as port is unknown: service/proto not found.
       
2006/09/26 22:47 CST [-] Received SIGTERM, shutting down.
2006/09/26 22:47 CST [-] (Port 9999 Closed)
2006/09/26 22:47 CST [-] Stopping factory <apt_proxy.apt_proxy.Factory instance at 0x40511bec>
2006/09/26 22:47 CST [-] [debug] Verifying database: /var/cache/apt-proxy/.apt-proxy/db/update.db
2006/09/26 22:47 CST [-] [debug] Opening database /var/cache/apt-proxy/.apt-proxy/db/update.db
2006/09/26 22:47 CST [-] [debug] Verifying database: /var/cache/apt-proxy/.apt-proxy/db/access.db
2006/09/26 22:47 CST [-] [debug] Opening database /var/cache/apt-proxy/.apt-proxy/db/access.db
2006/09/26 22:47 CST [-] [debug] Verifying database: /var/cache/apt-proxy/.apt-proxy/db/packages.db
2006/09/26 22:47 CST [-] [debug] Opening database /var/cache/apt-proxy/.apt-proxy/db/packages.db
2006/09/26 22:47 CST [Channel,2,192.168.3.26] [debug] Client connection closed
2006/09/26 22:47 CST [-] Main loop terminated.
2006/09/26 22:47 CST [-] Server Shut Down.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表