[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-proxy



Roberto Sanchez wrote:

> Please post the contents of your /etc/apt-proxy/apt-proxy.conf (as I
> asked in the previous message) and also post a listing of the output
> for a failed session (and a successful one if you can manage it).
> 
> -Roberto

Ok; my /etc/apt-proxy/apt-proxy.conf looks like:

-- 

# Configuration for apt-proxy

# Change this path if you do not want to keep your cache under var
APT_PROXY_CACHE=/var/cache/apt-proxy

### Rsync Backends
# Three or more fields each:
# 1) URL prefix
# 2) Dir to put files in (remember the trailing /!)
# 3...) http/ftp/rsync backends to replace it with (remember the
trailing /!)

# You can specify multiple backends like this example:
#add_backend /debian/                                   \
#       $APT_PROXY_CACHE/debian/                        \
#       http://SERVERONE/debian/                        \
#       http://SERVERTWO/debian/                        \

# HINT: Any request matching none of these is not served, making
# partial caching easy.
#
# You can also specify a different backend for control files
# by prefixing with a '+'.  This is particularly useful for
# using rsync for Packages and http/ftp for .deb/.tar.gzs
#
# This is a shell script and the backslashes at the end of
# the line denote that the line continues on the next line,
# so do not try to comment out one line without moving it!
#
# The 'deb' lines are examples that you can place in clients'
# sources.list that correspond to the apt-proxy backends.

# Debian main
#deb http://APTPROXY:9999/debian stable main contrib non-free
#deb http://APTPROXY:9999/debian woody main contrib non-free
#deb http://APTPROXY:9999/debian sarge main contrib non-free
#deb http://APTPROXY:9999/debian sid main contrib non-free
#deb http://APTPROXY:9999/debian project/experimental/main/binary-$(ARCH)/

add_backend /debian/                                    \
        $APT_PROXY_CACHE/debian/                        \
        http://ftp.de.debian.org/debian/                \
        http://ftp2.de.debian.org/debian/

# Debian non-US
#deb http://APTPROXY:9999/non-US stable/non-US main contrib non-free
#deb http://APTPROXY:9999/non-US woody/non-US main contrib non-free
#deb http://APTPROXY:9999/non-US sarge/non-US main contrib non-free
#deb http://APTPROXY:9999/non-US sid/non-US main contrib non-free

add_backend /non-US/                                    \
        $APT_PROXY_CACHE/non-US/                        \
        http://non-us.debian.org/                       \
        http://ftp.de.debian.org/debian-non-US/         \
        http://ftp2.de.debian.org/debian-non-US/

# Debian security
#deb http://APTPROXY:9999/security stable/updates main contrib non-free
#deb http://APTPROXY:9999/security woody/updates main contrib non-free
#deb http://APTPROXY:9999/security sarge/updates main contrib non-free

add_backend /security/                                  \
        $APT_PROXY_CACHE/security/                      \
        http://security.debian.org/


# Here are some more examples:
#
#Emdebian project
# add_backend /emdebian/                                \
#       $APT_PROXY_CACHE/emdebian/                      \
#       http://emdebian.sourceforge.net/emdebian/
#
#Blackdown jave
# add_backend /blackdown/                               \
#       $APT_PROXY_CACHE/blackdown/                     \
#       http://ftp.gwdg.de/pub/languages/java/linux/debian/
#
#apt-proxy repository
# see: http://apt-proxy.sourceforge.net/apt-proxy/README
# add_backend /apt-proxy/                               \
#       $APT_PROXY_CACHE/apt-proxy/                     \
#       http://apt-proxy.sourceforge.net/apt-proxy/
#
# openoffice.org packages
#deb http://APTPROXY:9999/openoffice unstable main contrib
#add_backend /openoffice/ $APT_PROXY_CACHE/openoffice/ http:/
openoffice.vpn-junkies.de/openoffice/

# KDE3
# deb http://APTPROXY:9999/kde3 /
#add_backend /kde3/ $APT_PROXY_CACHE/kde/ http://kde3.geniussystems.net
debian/

# people.debian.org
#deb http://shawnaptproxy:8000/debian-people/~njordan kde3.0/
#add_backend /debian-people/ $APT_PROXY_CACHE/people/ http:/
people.debian.org/

# Chain several apt-proxies together by forwarding all requests to another
# apt-proxy.
#for I in debian non-US security openoffice ; do
#  add_backend /$I/                                        \
#        $APT_PROXY_CACHE/$I/                           \
#        http://OTHERHOST:9999/$I/
#done


############################## OTHER VARS ##################################
#       Automatically delete old debs when we download a newer one
#       after this many days of the older not being accessed.
#       Comment out to avoid, set to 0 for `instantly' (not recommended;
#       sometimes the new versions are broken
CLEANUP_DAYS=14

#       Once every n days, look through tree to erase any debs which
#       haven't been accessed in that long (eg. obsolete, rarely used, etc).
#       Comment out to disable.
CLEAN_SWEEP=60

#       Maximum number of versions of each package to keep in cache
#       directory.  Version purging is carried out immediately after a new
#       version is downloaded.
#       Comment out to disable.
MAX_VERSIONS=2

#       Maximum frequency of Packages/etc. updates from back end (minutes)
#       Keep high to speed things up.
BACKEND_FREQ=5

#       Number of seconds for rsync to wait before timing out.
RSYNC_TIMEOUT=30

#       Number of seconds for wget to wait to connect before timing out.
WGET_TIMEOUT=30

#       Uncomment to change the path to wget, or add extra options.  For
#       example, if you are behind a firewall that does not allow active
#       FTP, use WGET="wget --passive-ftp"
#WGET=wget

#       Uncomment to change the path to rsync or add extra options.
#RSYNC=rsync

#       Uncomment to keep stats of successful backend transfers in the log.
#KEEP_STATS=1

#       Uncomment this for debugging messages
#DEBUG=true

#       HTTP/FTP proxy:  apt-proxy uses wget to retreive files.  Wget uses
#       the http_proxy and ftp_proxy environment variables, which can be set
#       like this:
#export http_proxy=http://proxy:8080/
#export ftp_proxy=http://proxy:8080/

-- 

...and the output of an apt-get update, followed by an apt-get dist-upgrade
look like this:

-- 

<machine name>:/etc/apt-proxy# apt-get update
Get:1 http://localhost unstable/main Packages
Get:2 http://localhost unstable/main Release
Get:3 http://localhost unstable/contrib Packages
Get:4 http://localhost unstable/contrib Release
Get:5 http://localhost unstable/non-free Packages
Get:6 http://localhost unstable/non-free Release
Get:7 http://localhost unstable/main Sources
Get:8 http://localhost unstable/main Release
Get:9 http://localhost unstable/contrib Sources
Get:10 http://localhost unstable/contrib Release
Get:11 http://localhost unstable/non-free Sources
Get:12 http://localhost unstable/non-free Release
Fetched 3969kB in 28s (137kB/s)
Reading Package Lists... Done
<machine-name>:/etc/apt-proxy# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
<machine name>:/etc/apt-proxy#

-- 

... while the /var/log/apt-proxy.log looks like:

-- 

25894 14:38:25]  Tue Oct 7 14:38:25 CEST 2003 Request /debian/dists
unstable/ma
in/binary-i386/Packages.gz
[25894 14:38:27]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/main/binary-i386/Packages.gz, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
/dev/tty: No such device or address
[26041 14:38:28]  Tue Oct 7 14:38:28 CEST 2003 Request /debian/dists
unstable/ma
in/binary-i386/Release
[26041 14:38:30]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/main/binary-i386/Release, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
[26194 14:38:30]  Tue Oct 7 14:38:30 CEST 2003 Request /debian/dists
unstable/co
ntrib/binary-i386/Packages.gz
[26194 14:38:34]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/contrib/binary-i386/Packages.gz, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
/dev/tty: No such device or address
[26346 14:38:34]  Tue Oct 7 14:38:34 CEST 2003 Request /debian/dists
unstable/co
ntrib/binary-i386/Release
[26346 14:38:36]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/contrib/binary-i386/Release, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
[26500 14:38:36]  Tue Oct 7 14:38:36 CEST 2003 Request /debian/dists
unstable/no
n-free/binary-i386/Packages.gz
[26500 14:38:38]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/non-free/binary-i386/Packages.gz, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
/dev/tty: No such device or address
[26646 14:38:39]  Tue Oct 7 14:38:39 CEST 2003 Request /debian/dists
unstable/no
n-free/binary-i386/Release
[26646 14:38:41]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/non-free/binary-i386/Release, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
[26800 14:38:41]  Tue Oct 7 14:38:41 CEST 2003 Request /debian/dists
unstable/ma
in/source/Sources.gz
[26800 14:38:43]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/main/source/Sources.gz, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
[26937 14:38:43]  Tue Oct 7 14:38:43 CEST 2003 Request /debian/dists
unstable/ma
in/source/Release
[26937 14:38:45]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/main/source/Release, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
[27073 14:38:45]  Tue Oct 7 14:38:45 CEST 2003 Request /debian/dists
unstable/co
ntrib/source/Sources.gz
[27073 14:38:47]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/contrib/source/Sources.gz, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
[27209 14:38:47]  Tue Oct 7 14:38:47 CEST 2003 Request /debian/dists
unstable/co
ntrib/source/Release
[27209 14:38:50]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/contrib/source/Release, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
[27346 14:38:50]  Tue Oct 7 14:38:50 CEST 2003 Request /debian/dists
unstable/no
n-free/source/Sources.gz
[27346 14:38:52]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/non-free/source/Sources.gz, from offset 0.
/usr/bin/stat: Warning: `-l' is deprecated; use `-L' instead
[27482 14:38:52]  Tue Oct 7 14:38:52 CEST 2003 Request /debian/dists
unstable/no
n-free/source/Release
[27482 14:38:54]  Delivered partial file /var/cache/apt-proxy/debian/dists
unsta
ble/non-free/source/Release, from offset 0.

-- 

TIA again, 
wjl aka Wolfgang Lonien, confused...
-- 
NTV '94 RedSue 24-42Mm running on fuel
everything else here runs Debian



Reply to: