[问题]apt-proxy服务器无法更新ubuntu 6.06

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
suheng
帖子: 30
注册时间: 2006-03-01 23:17
来自: 在他乡

[问题]apt-proxy服务器无法更新ubuntu 6.06

#1

帖子 suheng » 2006-09-26 14:05

虚拟测试
a.服务端
测试环境:Debian server[vmware workstation]
建立APT-PROXY服务
{for debian 所有版本}
{for ubuntu 所有版本}
固定IP:192.168.3.238

b.客户端
1.测试环境:Debian Desktop[vmware workstation]
修改源文件指向服务器为192.168.3.238
成功测试APT-PROXY debian
2.测试环境:Ubuntu Desktop 5.10
修改源文件指向服务器为192.168.3.238
成功测试APT-PROXY ubuntu 5.10
3.测试环境Ubuntu server 6.06
测试尚在调试中
4.测试环境Ubuntu desktop 6.06
测试尚在调试中

再看看我们建立虚拟服务器后更新源的几个数据
A.975kB/s Aptserver to Debian client
B.875KB/s Aptserver to Ubuntu client

问题:
apt-proxy服务器无法更新ubuntu 6.06
错误 http://192.168.3.238:80 (192.168.3.238). connect (111 connection refused)
无法连上 (192.168.3.238). connect (111 connection refused)
上次由 suheng 在 2006-09-27 3:24,总共编辑 1 次。
黑暗中摸索的初学者
suheng
帖子: 30
注册时间: 2006-03-01 23:17
来自: 在他乡

#2

帖子 suheng » 2006-09-26 15:49

附上apt-proxy配置文件
[DEFAULT]
;; All times are in seconds, but you can add a suffix
;; for minutes(m), hours(h) or days(d)

;; Server IP to listen on
;address = 192.168.0.254

;; Server port to listen on
port = 80

;; Control files (Packages/Sources/Contents) refresh rate
;;
;; Minimum time between attempts to refresh a file
min_refresh_delay = 8h

;; Minimum age of a file before attempting an update (NOT YET IMPLEMENTED)
;min_age = 23h

;; Uncomment to make apt-proxy continue downloading even if all
;; clients disconnect. This is probably not a good idea on a
;; dial up line.
;; complete_clientless_downloads = 1

;; Debugging settings.
;; for all debug information use this:
;; debug = all:9
debug = all:4 db:0

;; Debugging remote python console
;; Do not enable in an untrusted environment
;telnet_port = 9998
;telnet_user = apt-proxy
;telnet_password = secret

;; Network timeout when retrieving from backend servers
timeout = 60

;; Cache directory for apt-proxy
cache_dir = /var/cache/apt-proxy

;; Use passive FTP? (default=on)
;passive_ftp = on

;; Use HTTP proxy?
;http_proxy = host:port

;; Enable HTTP pipelining within apt-proxy (for test purposes)
;disable_pipelining=0

;;--------------------------------------------------------------
;; Cache housekeeping

;; Time to perform periodic housekeeping:
;; - delete files that have not been accessed in max_age
;; - scan cache directories and update internal tables
cleanup_freq = 1d

;; Maximum age of files before deletion from the cache (seconds)
max_age = 120d

;; Maximum number of versions of a .deb to keep per distribution
max_versions = 3

;; Add HTTP backends dynamicaly if not already defined? (default=on)
;dynamic_backends = on

;;---------------------------------------------------------------
;;---------------------------------------------------------------
;; Backend servers
;;
;; Place each server in its own [section]

[debian]
;; The main Debian archive
;; You can override the default timeout like this:
;timeout = 30

;; Rsync server used to rsync the Packages file (NOT YET IMPLEMENTED)
;;rsyncpackages = rsync://ftp.de.debian.org/debian

;; Backend servers, in order of preference
backends =
http://ftp.us.debian.org/debian
http://debian.cn99.com/debian
http://ftp2.de.debian.org/debian
ftp://ftp.uk.debian.org/debian


[debian-non-US]
;; Debian debian-non-US archive
;timeout will be the global value
backends =
http://debian.cn99.com/debian-non-US
ftp://debian.cn99.com/debian-non-US
http://ftp.uk.debian.org/debian-non-US
http://ftp.de.debian.org/debian-non-US
ftp://ftp.uk.debian.org/debian

[security]
;; Debian security archive
backends =
http://security.debian.org/debian-security
http://ftp2.de.debian.org/debian-security
http://debian.cn99.com/debian-security
ftp://debian.cn99.com/debian-security
[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

;[openoffice]
;; OpenOffice.org packages
;backends =
; http://ftp.囗囗囗囗囗囗囗.de/pub/debian-openoffice
; http://ftp.sh.cvut.cz/MIRRORS/OpenOffice.deb
; http://borft.student.utwente.nl/debian

;[apt-proxy]
;; Apt-proxy new versions
;backends = http://apt-proxy.sourceforge.net/apt-proxy

;[backports.org]
;; backports.org
;backends = http://backports.org/debian

;[blackdown]
;; Blackdown Java
;backends = http://ftp.gwdg.de/pub/languages/java/linux/debian


;[debian-people]
;; people.debian.org
;backends = http://people.debian.org

;[emdebian]
;; The Emdebian project
;backends = http://emdebian.sourceforge.net/emdebian

;[rsync]
;; An example using an rsync server. This is not recommended
;; unless http is not available, becuause rsync is only more
;; efficient for transferring uncompressed files and puts much
;; more overhead on the server. See the rsyncpacakges parameter
;; for a way of rsyncing just the Packages files.
;backends = rsync://ftp.uk.debian.org/debian
黑暗中摸索的初学者
suheng
帖子: 30
注册时间: 2006-03-01 23:17
来自: 在他乡

#3

帖子 suheng » 2006-09-27 19:43

问题:
apt-proxy服务器无法更新ubuntu 6.06
错误 http://192.168.3.238:80 (192.168.3.238). connect (111 connection refused)
无法连上 (192.168.3.238). connect (111 connection refused)

通过www.ubuntuforums.org查找发现
修改客户端的apt.conf 去除http即可解决。
结果显示

这次更新虽然能连上服务器,但所有的更新包都忽略了,显示failed to fetch...

检查服务端在/var/cache/apt-proxy/ubuntu下并没有dapper的文件,昨天又看到一叶兄的“dapper打包文件”
想知道解压到此能否解决问题。? :P
黑暗中摸索的初学者
回复