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

Re: apt-proxy läuft nicht in sarge



Am Dienstag, den 19.07.2005, 10:29 +0200 schrieb Tobias Krais:
Hallo Tobias!

> > Ich habe auf Sarge upgegradet. Laut Mailingliste müßte apt-proxy in
> > sarge ja laufen. Bei mir startet apt-proxy nicht.
> > Wenn in der Konsole "/etc/init.d/apt-proxy start" eingebe, erscheint
> > folgende Fehlermeldung:
> > chef:/home/tommi# /etc/init.d/apt-proxy start
> > Updating twisted's process module.
> > No updating required.
> > Traceback (most recent call last):
> >   File "/etc/init.d/apt-proxy", line 31, in ?
> >     application.run(0)
> > AttributeError: Componentized instance has no attribute 'run'
> > 
> > Leider komme ich an der Stelle nicht weiter. Hat jemand einen Tipp?
> 
> Ich habe gerade mal gegooglet nach "Updating twisted's process module."
> Und es gibt seehr viele postings dazu auch verschiedene Lösungsansätze.
> Haben die bei dir noch nicht funktioniert?
Also nach Eingabe Deiner genannten Zeile, habe ich ungefähr 4 Quellen
gefunden, von denen keine eine Lösung aufzeigt.

> Dann: Poste mal deine apt-proxy conf und mache evt. ein reinstall. Das
> hatte bei mir wunder bewirkt.
Das reinstall liefert folgende Meldungen:
chef:/usr/src/linux-2.6.11# apt-get install --reinstall apt-proxy
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen
und 0 nicht aktualisiert.
Es müssen noch 0B von 61,2kB Archiven geholt werden.
Nach dem Auspacken werden 0B Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
W: Kann nicht auf die Liste http://192.168.1.2 testing/main Packages
(/var/lib/apt/lists/192.168.1.2:9999_marillat_dists_testing_main_binary-i386_Packages) der Quellpakete zugreifen. - stat (2 Datei oder Verzeichnis nicht gefunden)
Vorkonfigurieren der Pakete ...
(Lese Datenbank ... 162620 Dateien und Verzeichnisse sind derzeit
installiert.)
Vorbereiten zum Ersetzen von apt-proxy 1.9.29
(durch .../apt-proxy_1.9.29_all.deb) ...
Updating twisted's process module.
No updating required.
Traceback (most recent call last):
  File "/etc/init.d/apt-proxy", line 31, in ?
    application.run(0)
AttributeError: Componentized instance has no attribute 'run'
invoke-rc.d: initscript apt-proxy, action "stop" failed.
Entpacke Ersatz für apt-proxy ...
Richte apt-proxy ein (1.9.29) ...
update-rc.d: warning: /etc/rc1.d/K20apt-proxy is not a link
to ../init.d/apt-proxy
update-rc.d: warning: /etc/rc2.d/S20apt-proxy is not a link
to ../init.d/apt-proxy
update-rc.d: warning: /etc/rc3.d/S20apt-proxy is not a link
to ../init.d/apt-proxy
update-rc.d: warning: /etc/rc5.d/K20apt-proxy is not a link
to ../init.d/apt-proxy
update-rc.d: warning: /etc/rc6.d/K20apt-proxy is not a link
to ../init.d/apt-proxy
Updating twisted's process module.
No updating required.
Traceback (most recent call last):
  File "/etc/init.d/apt-proxy", line 31, in ?
    application.run(0)
AttributeError: Componentized instance has no attribute 'run'
invoke-rc.d: initscript apt-proxy, action "start" failed.

localepurge: checking system for new locale ...
localepurge: processing locale files ...
localepurge: processing man pages ...
,,/usr/share/man/fr/man8/apt-proxy.8.gz" entfernt
W: Kann nicht auf die Liste http://192.168.1.2 testing/main Packages
(/var/lib/apt/lists/192.168.1.2:9999_marillat_dists_testing_main_binary-i386_Packages) der Quellpakete zugreifen. - stat (2 Datei oder Verzeichnis nicht gefunden)
W: Sie möchten vielleicht »apt-get update« aufrufen, um diese Probleme
zu lösen

Das hilft mir so auch nicht weiter. Ich hänge mal die conf dran.
Vielleicht hat ja jemand noch eine Idee. Ansonsten müßte ich sehen, dass
ich auf die woody-version umsteige.



-- 
Gruß

Thomas Wegner <ThomasWegner@gmx.net>
# Configuration for apt-proxy von der sourceforge-Homepage
#angepasst von Tommi am 30.08.2004

# 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/		\
	ftp://ftp.de.debian.org/debian/		\
	ftp://ftp2.de.debian.org/debian/		\
	ftp://ftp.us.debian.org/debian/		\
	
add_backend /non-US/				\
	$APT_PROXY_CACHE/non-US/		\
	ftp://ftp.de.debian.org/debian-non-US/	\
	ftp://ftp2.de.debian.org/debian-non-US/	\
	ftp://ftp.us.debian.org/debian-non-US/  \

add_backend /security/				\
	$APT_PROXY_CACHE/security/		\
	http://security.debian.org/		\
	http://non-us.debian.org/		\




#add_backend /debian/					\
#	$APT_PROXY_CACHE/debian/			\
#	http://ftp.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://ftp.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:

#Pakete von Marillat -> mplayer, etc
#deb ftp://ftp.nerim.net/debian-marillat/ testing main


add_backend /marillat/     			\
	$APT_PROXY_CACHE/marillat/		\
	ftp://ftp.nerim.net/debian-marillat/	
	

#Paktet fuer mutt NG
#add_backend /binary-i386/			\
#	$APT_PROXY_CACHE/binary-i386/		\
#	http://www.lxtec.de/debarchiv/


#$APT_PROXY_CACHE/debian-marillat/ ftp://ftp.nerim.net/


#
#Emdebian project
# add_backend /emdebian/ 				\
#	$APT_PROXY_CACHE/emdebian/ 			\
#	http://emdebian.sourceforge.net/emdebian/
#
#Blackdown java
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/
#
#Pakete sind mittlerweile in sarge vorhanden
#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=240

#	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/
[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.1.2

;; 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 = 2400

;; 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 db:3

;; 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 = 30

;; 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 = off

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

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

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

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

;[debian]
;This backend has been commented out to prevent clash with a 
;backend of the same name imported from v1 configuration 
;
;;; 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
;	http://ftp.us.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.de.debian.org/debian-non-US
;	http://ftp.us.debian.org/debian-non-US
;	ftp://ftp.uk.debian.org/debian
	
;[security]
;This backend has been commented out to prevent clash with a 
;backend of the same name imported from v1 configuration 
;
;;; 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

;[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

[debian]
backends =
	ftp://ftp.de.debian.org/debian
	ftp://ftp2.de.debian.org/debian
	ftp://ftp.us.debian.org/debian
[non-US]
backends =
	ftp://ftp.de.debian.org/debian-non-US
	ftp://ftp2.de.debian.org/debian-non-US
	ftp://ftp.us.debian.org/debian-non-US
[security]
backends =
	http://security.debian.org
	http://non-us.debian.org
[marillat]
backends =
	ftp://ftp.nerim.net/debian-marillat
[blackdown]
backends =
	http://ftp.gwdg.de/pub/languages/java/linux/debian

Reply to: