habe mir gestern mal den Apt-Proxy installiert. Dache der würde auch so "out of the Box" funktionieren, tut er aber nicht so wie ichmir das dachte. Ich kann zwar an den Clients Pakete installieren und die Paketlisten updaten. Die Pakete werden aber nicht zwischen gespeichert, d.h. nix landet im Verzeichniss /var/cache/apt-proxy
Hier mal meine Config
Code: Alles auswählen
[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.1
;; Server port to listen on
port = 9999
;; Control files (Packages/Sources/Contents) refresh rate
;;
;; Minimum time between attempts to refresh a file
min_refresh_delay = 1h
;; Minimum age of a file before attempting an update (NOT YET IMPLEMENTED)
;min_age = 5h
;; 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:3 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 = 15
;; 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.de.debian.org/debian
http://ftp2.de.debian.org/debian
ftp://ftp.uk.debian.org/debian
[security]
;; Debian security archive
backends =
http://security.debian.org/debian-security
http://ftp2.de.debian.org/debian-security
;;[ubuntu]
;; Ubuntu archive
;;backends = http://archive.ubuntu.com/ubuntu
;;[ubuntu-security]
;; Ubuntu security updates
;;backends = http://security.ubuntu.com/ubuntu
;openoffice]
;; OpenOffice.org packages
backends =
http://ftp.freenet.de/pub/debian-openoffice
http://ftp2.de.debian.org/debian
ftp://ftp.uk.debian.org/debian
[security]
;; Debian security archive
backends =
http://security.debian.org/debian-security
http://ftp2.de.debian.org/debian-security
;;[ubuntu]
;; Ubuntu archive
;;backends = http://archive.ubuntu.com/ubuntu
;;[ubuntu-security]
;; Ubuntu security updates
;;backends = http://security.ubuntu.com/ubuntu
;openoffice]
;; OpenOffice.org packages
backends =
http://ftp.freenet.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
[java]
;; 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
Code: Alles auswählen
donald:/var/cache# ls -ahl
insgesamt 8,5K
drwxr-xr-x 15 root root 392 2005-11-02 22:47 .
drwxr-xr-x 21 root root 664 2005-11-02 22:20 ..
drwxr-xr-x 2 www-data www-data 48 2004-03-10 19:14 apache
drwxr-xr-x 3 root root 136 2005-11-02 22:47 apt
drwxr-xr-x 2 root root 176 2005-11-02 22:47 apt-listbugs
drwxr-xr-x 2 aptproxy root 48 2005-05-16 06:29 apt-proxy
drwxr-xr-x 2 root root 88 2004-02-09 23:13 bind
drwxr-xr-x 2 root root 216 2005-11-02 22:47 debconf
drwxr-xr-x 2 root root 312 2005-05-12 17:17 dictionaries-common
drwxr-xr-x 2 root root 72 2005-11-02 22:41 locate
drwxr-sr-x 16 man root 408 2005-11-02 06:28 man
drwxr-xr-x 2 root root 48 2005-05-18 09:06 mysql
drwxr-xr-x 2 root root 48 2005-02-09 23:29 razor
drwxr-xr-x 3 root root 104 2005-11-02 23:04 samba
drwxrwxrwx 26 proxy nogroup 656 2005-11-02 22:58 squid
Gruß & Dank
Poldi