Hello, I'm trying to import my /var/cache/apt/archives to apt-proxy
apt-proxy: Installed: 1.9.33 Candidate: 1.9.33 First i installed apt-proxy, then i configured /etc/apt-proxy/apt-proxy-v2.conf ____________________apt-proxy-v2.conf_________________________ 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.99.3 ;; 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 = 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 = 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.us.debian.org/debian http://ftp.de.debian.org/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://ftp.uk.debian.org/debian-non-US ;; http://ftp.de.debian.org/debian-non-US ;; ftp://ftp.uk.debian.org/debian [debian-security] ;; Debian security archive backends = http://ftp2.de.debian.org/debian-security http://security.debian.org/debian-security [ubuntu] ;; Ubuntu archive backends = http://archive.ubuntu.com/ubuntu http://es.archive.ubuntu.com/ubuntu [ubuntu-security] ;; Ubuntu security updates backends = http://security.ubuntu.com/ubuntu [debian-marillat] ;; Marillat repository with mplayer and codecs backends = ftp://ftp.nerim.net/debian-marillat ;[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 ;[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 _____________________END______________________________________________ NOTE: i run Debian/testing but i have also some clients runnng Ubuntu so i use also the Ubuntu Backends. after i edited my /etc/apt/sources.list ______________________________sources.list_____________________________ # debian backend deb http://barrabox.ram:9999/debian testing main contrib non-free deb-src http://barrabox.ram:9999/debian testing main contrib non-free # debian-security backend deb http://barrabox.ram:9999/debian-security testing/updates main deb-src http://barrabox.ram:9999/debian-security testing/updates main # debian marillat backend deb http://barrabox.ram:9999/debian-marillat etch main deb-src http://barrabox.ram:9999/debian-marillat etch main _________________________END____________________________________________ then i run a $ apt-get update and after $ apt-proxy-import -r -d -v /var/cache/apt/archives 2006/03/20 07:45 CET [-] [apt_pkg] No Packages files available for debian-marillat backend 2006/03/20 07:45 CET [-] [apt_pkg] No Packages files available for debian-security backend 2006/03/20 07:45 CET [-] [apt_pkg] No Packages files available for ubuntu-security backend 2006/03/20 07:45 CET [-] [apt_pkg] No Packages files available for debian backend 2006/03/20 07:45 CET [-] [apt_pkg] No Packages files available for ubuntu backend 2006/03/20 07:45 CET [-] [import] slang1_1.4.9dbs-8_i386.deb skipped - no suitable backend found this happens to all my packages. i tryed also to import only one package a time like $ apt-proxy-import -d -v /var/cache/apt/archives/aalib1_1.4p5-22_i386.deb 2006/03/20 07:47 CET [-] Log opened. 2006/03/20 07:47 CET [-] debug 2006/03/20 07:47 CET [-] [debug] Created new BackendServer: ftp://ftp.nerim.net/debian-marillat 2006/03/20 07:47 CET [-] [debug] Created new BackendServer: http://security.ubuntu.com/ubuntu 2006/03/20 07:47 CET [-] [debug] Created new BackendServer: http://ftp.de.debian.org/debian 2006/03/20 07:47 CET [-] [debug] Created new BackendServer: http://ftp2.de.debian.org/debian 2006/03/20 07:47 CET [-] [debug] Created new BackendServer: ftp://ftp.uk.debian.org/debian 2006/03/20 07:47 CET [-] [debug] Created new BackendServer: http://archive.ubuntu.com/ubuntu 2006/03/20 07:47 CET [-] [debug] Created new BackendServer: http://es.archive.ubuntu.com/ubuntu 2006/03/20 07:47 CET [-] [debug] Created new BackendServer: http://ftp2.de.debian.org/debian-security 2006/03/20 07:47 CET [-] [debug] Created new BackendServer: http://security.debian.org/debian-security 2006/03/20 07:47 CET [-] [import] Importing packages from directory: /var/cache/apt/archives/aalib1_1.4p5-22_i386.deb 2006/03/20 07:47 CET [-] Traceback (most recent call last): 2006/03/20 07:47 CET [-] File "/usr/sbin/apt-proxy-import", line 91, in ? 2006/03/20 07:47 CET [-] packages.import_directory(factory, import_dir, config.opts['recursive']) 2006/03/20 07:47 CET [-] File "/usr/share/python-support/apt-proxy/apt_proxy/packages.py", line 367, in import_directory 2006/03/20 07:47 CET [-] for file in os.listdir(dir): 2006/03/20 07:47 CET [-] OSError: [Errno 20] Not a directory: '/var/cache/apt/archives/aalib1_1.4p5-22_i386.deb' and i tryed a lot more i basicaly think now, eader i am total stupid and miss something very basic, or apt-proxy-import is brocken in version 1.9.33. Any suggestion on what i could try more ? __ __ _/ |______ _/ |_ \ __\__ \\ __\ | | / __ \| | |__| (____ /__| \/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]