Sie sind nicht angemeldet.

1

25.01.2006, 18:32

Brauche bitte Hilfe bei apt-proxy

Hallo!

Also, ich möchte jetzt gerne auf apt-proxy umsteigen, da ich mehrere ubuntu rechner im netz laufen habe. Der Server auf dem apt-proxy läuft ist ein debian server. Aber ich denke, das sollte nicht problematisch sein, oder?

Meine client sources.list vor apt-proxy sah so aus:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
christian@rudi:/etc/apt$ cat /etc/apt/sources.list.20060125
deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted

# Original
deb http://de.archive.ubuntu.com/ubuntu breezy main multiverse restricted universe
deb-src http://de.archive.ubuntu.com/ubuntu breezy main multiverse restricted universe

deb http://de.archive.ubuntu.com/ubuntu breezy-updates main multiverse restricted universe
deb-src http://de.archive.ubuntu.com/ubuntu breezy-updates main multiverse restricted universe

deb http://security.ubuntu.com/ubuntu breezy-security main multiverse restricted universe
deb-src http://security.ubuntu.com/ubuntu breezy-security main multiverse restricted universe

## Mirror
deb http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu/ breezy-security main multiverse universe restricted
deb http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu/ breezy-updates main multiverse restricted universe
deb http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu/ breezy main multiverse universe restricted

## Backports
deb http://ubuntu-backports.mirrormax.net/ breezy-backports-staging main multiverse restricted universe
#deb http://ubuntu-backports.mirrormax.net/ breezy-backports-staging contrib main multiverse restricted universe

# Backports + Extras
deb http://de.archive.ubuntu.com/ubuntu breezy-backports main universe multiverse restricted
deb http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb http://ubuntu-backports.mirrormax.net/ breezy-extras main restricted universe multiverse

#extras-staging
deb http://ubuntu-backports.mirrormax.net/ breezy-extras-staging main restricted universe multiverse

# Captive
deb http://www.kruyt.org/debian /

# java
deb http://ubuntu.tower-net.de/ubuntu/ hoary java

# Mono
deb http://debian.meebey.net/ ./

# xvidcap
deb http://www.jarre-de-the.net/computing/debian/ stable main

# Marillat Media
#deb ftp://ftp.nerim.net/debian-marillat/ stable main
#deb ftp://ftp.nerim.net/debian-marillat/ testing main
#deb ftp://ftp.nerim.net/debian-marillat/ unstable main


Jetzt habe ich einfach die /etc/apt-proxy/apt-proxy-v2.conf bearbeitet:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[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 = 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

;;########      UBUNTU - SOURCES        ##########

[ubuntu]
;; Ubuntu archive
backends = http://de.archive.ubuntu.com/ubuntu
        http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages
        http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu
        http://www.ftp.uni-erlangen.de/pub/mirrors/ubuntu
        http://archive.ubuntu.com/ubuntu

[breezy-updates]
;; Ubuntu Breezy - Updates
backends = http://de.archive.ubuntu.com/ubuntu
        http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu/

[ubuntu-security]
;; Ubuntu security updates
backends = http://security.ubuntu.com/ubuntu
        http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu/

[ubuntu-backports]
;; Ubuntu Backports
backends = http://ubuntu-backports.mirrormax.net/

[ubuntu-backports-extras]
;; Ubuntu Backports + Extras
backends = http://de.archive.ubuntu.com/ubuntu
        http://archive.ubuntu.com/ubuntu

[ubuntu-extras-staging]
;; Ubuntu Extras-Staging
backends =  http://ubuntu-backports.mirrormax.net/

[captive]
;; Captive
backends = http://www.kruyt.org/debian

[java]
;; Java
backends = http://ubuntu.tower-net.de/ubuntu/

[mono]
;; Mono
backends = http://debian.meebey.net/

[xvidcap]
;; xvidcap
backends = http://www.jarre-de-the.net/computing/debian/

[marillat]
;; Marillat
backends = ftp://ftp.nerim.net/debian-marillat/

;;########      UBUNTU - SOURCES        ##########

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


Meine client sources.list sieht nun so aus:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
christian@rudi:/etc/apt$ cat /etc/apt/sources.list
#Ubuntu
deb http://10.0.1.4:9999/ubuntu breezy main multiverse restricted universe

#Breezy Updates
deb http://10.0.1.4:9999/breezy-updates breezy-updates main multiverse restricted universe

#Sicherheitsupdates
deb http://10.0.1.4:9999/ubuntu-security breezy-security main multiverse restricted universe

#Backports
deb http://10.0.1.4:9999/ubuntu-backports breezy-backports-staging main multiverse restricted universe

#Backports + Extras
deb http://10.0.1.4:9999/ubuntu-backports-extras breezy-backports main universe multiverse restricted
deb http://10.0.1.4:9999/ubuntu-backports-extras breezy-extras main restricted universe multiverse

#Extras Staging
deb http://10.0.1.4:9999/ubuntu-extras-staging breezy-extras-staging main restricted universe multiverse

#Captive
deb http://10.0.1.4:9999/captive /

#Java
deb http://10.0.1.4:9999/java hoary java

#Mono
deb http://10.0.1.4:9999/mono ./

#xvidcap
deb http://10.0.1.4:9999/xvidcap stable main


Ich denke ganz richtig hab ich das auf die apt-proxy Konfigurationsdatei nicht umgelenkt. Wäre toll, wenn mir dabei wer helfen könnte.

Das gute (so hoffe ich zumindest) ist, dass apt-proxy ein paar der Paketquellen lädt. Aber die meisten werden mit einem Fehler nicht geladen.

Der Fehler ist folgender:

Quellcode

1
2
Fehl http://10.0.1.4 breezy-security Release.gpg
  Fehler beim Lesen vom Server: Das entfernte Ende hat die Verbindung geschlossen


Weiß wer woran das liegen könnte?

Danke!

lg,
Christian.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »christian8287« (25.01.2006, 18:34)


2

25.01.2006, 22:17

Ok, jetzt bin ich auf den Fehler drauf gekommen. Ich habe vergessen nach der Änderung an der apt-proxy config ein /etc/init.d/apt-proxy restart durchzuführen. Jetzt lädt er fast alle Pakete AUßER von folgenden Seiten:

Quellcode

1
2
http://ubuntu-backports.mirrormax.net/
ftp://ftp.nerim.net/debian-marillat/


Verwendet jemand anderes auch diese Quellen? Funktionieren die?

Bei mir haben sie jedenfalls früher funktioniert. Jetzt bekomme ich einen 404 File not Found Error.

Vielen Dank!

lg,
Christian.