Re: apt-proxy und Error 404
Rene Drießel schrieb:
[...]
Schau einmal in deine Logdateien (/var/log/apt-proxy.log). Vielleicht
können einfach nur die Verzeichnisse in /var/cache/apt-proxy/ nicht
angelegt werden. Ich hatte das Problem, das die Rechte nicht gestimmt
haben.
Hallo Rene!
Nach Vorschlag von Uwe steht jetzt in apt-proxy.conf:
add_backend /debian/ \
$APT_PROXY_CACHE/debian/ \
http://ftp.de.debian.org::debian/ \
http://ftp2.de.debian.org::debian/
add_backend /non-US/ \
$APT_PROXY_CACHE/non-US/ \
http://ftp.de.debian.org::debian-non-US/ \
http://ftp2.de.debian.org::debian-non-US/
add_backend /security/ \
$APT_PROXY_CACHE/security/ \
http://security.debian.org::debian-security/ \
http://non-us.debian.org::debian-security/
und in sources.list:
deb http://localhost:9999/debian stable main contrib non-free
deb http://localhost:9999/non-US stable/non-US main contrib non-free
deb http://localhost:9999/security stable/updates main contrib non-free
Ein apt-get update liefert aber immer noch:
p500:/var/cache# apt-get update
Err http://localhost stable/main Packages
404 directory does not exist on any server
Ign http://localhost stable/main Release
Err http://localhost stable/contrib Packages
404 directory does not exist on any server
Ign http://localhost stable/contrib Release
Err http://localhost stable/non-free Packages
404 directory does not exist on any server
Ign http://localhost stable/non-free Release
Err http://localhost stable/non-US/main Packages
404 directory does not exist on any server
Ign http://localhost stable/non-US/main Release
Err http://localhost stable/non-US/contrib Packages
404 directory does not exist on any server
Ign http://localhost stable/non-US/contrib Release
Err http://localhost stable/non-US/non-free Packages
404 directory does not exist on any server
Ign http://localhost stable/non-US/non-free Release
Err http://localhost stable/updates/main Packages
404 directory does not exist on any server
Ign http://localhost stable/updates/main Release
Err http://localhost stable/updates/contrib Packages
404 directory does not exist on any server
Ign http://localhost stable/updates/contrib Release
Err http://localhost stable/updates/non-free Packages
404 directory does not exist on any server
Ign http://localhost stable/updates/non-free Release
Failed to fetch
http://localhost:9999/debian/dists/stable/main/binary-i386/Packages 404
directory does not exist on any server
Failed to fetch
http://localhost:9999/debian/dists/stable/contrib/binary-i386/Packages
404 directory does not exist on any server
Failed to fetch
http://localhost:9999/debian/dists/stable/non-free/binary-i386/Packages
404 directory does not exist on any server
Failed to fetch
http://localhost:9999/non-US/dists/stable/non-US/main/binary-i386/Packages
404 directory does not exist on any server
Failed to fetch
http://localhost:9999/non-US/dists/stable/non-US/contrib/binary-i386/Packages
404 directory does not exist on any server
Failed to fetch
http://localhost:9999/non-US/dists/stable/non-US/non-free/binary-i386/Packages
404 directory does not exist on any server
Failed to fetch
http://localhost:9999/security/dists/stable/updates/main/binary-i386/Packages
404 directory does not exist on any server
Failed to fetch
http://localhost:9999/security/dists/stable/updates/contrib/binary-i386/Packages
404 directory does not exist on any server
Failed to fetch
http://localhost:9999/security/dists/stable/updates/non-free/binary-i386/Packages
404 directory does not exist on any server
Reading Package Lists... Done
Building Dependency Tree... Done
W: Couldn't stat source package list http://localhost stable/main
Packages
(/var/lib/apt/lists/localhost:9999_debian_dists_stable_main_binary-i386_Packages)
- stat (2 No such file or directory)
W: Couldn't stat source package list http://localhost stable/contrib
Packages
(/var/lib/apt/lists/localhost:9999_debian_dists_stable_contrib_binary-i386_Packages)
- stat (2 No such file or directory)
W: Couldn't stat source package list http://localhost stable/non-free
Packages
(/var/lib/apt/lists/localhost:9999_debian_dists_stable_non-free_binary-i386_Packages)
- stat (2 No such file or directory)
W: Couldn't stat source package list http://localhost stable/non-US/main
Packages
(/var/lib/apt/lists/localhost:9999_non-US_dists_stable_non-US_main_binary-i386_Packages)
- stat (2 No such file or directory)
W: Couldn't stat source package list http://localhost
stable/non-US/contrib Packages
(/var/lib/apt/lists/localhost:9999_non-US_dists_stable_non-US_contrib_binary-i386_Packages)
- stat (2 No such file or directory)
W: Couldn't stat source package list http://localhost
stable/non-US/non-free Packages
(/var/lib/apt/lists/localhost:9999_non-US_dists_stable_non-US_non-free_binary-i386_Packages)
- stat (2 No such file or directory)
W: Couldn't stat source package list http://localhost
stable/updates/main Packages
(/var/lib/apt/lists/localhost:9999_security_dists_stable_updates_main_binary-i386_Packages)
- stat (2 No such file or directory)
W: Couldn't stat source package list http://localhost
stable/updates/contrib Packages
(/var/lib/apt/lists/localhost:9999_security_dists_stable_updates_contrib_binary-i386_Packages)
- stat (2 No such file or directory)
W: Couldn't stat source package list http://localhost
stable/updates/non-free Packages
(/var/lib/apt/lists/localhost:9999_security_dists_stable_updates_non-free_binary-i386_Packages)
- stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old
ones used instead.
Und in /var/log/apt-proxy.log steht:
[8846 22:53:47] Die Sep 23 22:53:47 CEST 2003 Request
/debian/dists/stable/main/binary-i386/Packages.gz
[8846 22:53:48] Bad URL /dists directory does not exist on any server
[8933 22:53:49] Die Sep 23 22:53:49 CEST 2003 Request
/debian/dists/stable/main/binary-i386/Release
[8933 22:53:49] Bad URL /dists directory does not exist on any server
[9020 22:53:50] Die Sep 23 22:53:50 CEST 2003 Request
/debian/dists/stable/contrib/binary-i386/Packages.gz
[9020 22:53:51] Bad URL /dists directory does not exist on any server
[9107 22:53:51] Die Sep 23 22:53:51 CEST 2003 Request
/debian/dists/stable/contrib/binary-i386/Release
[9107 22:53:52] Bad URL /dists directory does not exist on any server
[9194 22:53:53] Die Sep 23 22:53:53 CEST 2003 Request
/debian/dists/stable/non-free/binary-i386/Packages.gz
[9194 22:53:53] Bad URL /dists directory does not exist on any server
[9281 22:53:54] Die Sep 23 22:53:54 CEST 2003 Request
/debian/dists/stable/non-free/binary-i386/Release
[9281 22:53:55] Bad URL /dists directory does not exist on any server
[9368 22:53:55] Die Sep 23 22:53:55 CEST 2003 Request
/non-US/dists/stable/non-US/main/binary-i386/Packages.gz
[9368 22:53:56] Bad URL /dists directory does not exist on any server
[9458 22:53:57] Die Sep 23 22:53:57 CEST 2003 Request
/non-US/dists/stable/non-US/main/binary-i386/Release
[9458 22:53:57] Bad URL /dists directory does not exist on any server
[9548 22:53:58] Die Sep 23 22:53:58 CEST 2003 Request
/non-US/dists/stable/non-US/contrib/binary-i386/Packages.gz
[9548 22:53:59] Bad URL /dists directory does not exist on any server
[9638 22:54:00] Die Sep 23 22:54:00 CEST 2003 Request
/non-US/dists/stable/non-US/contrib/binary-i386/Release
[9638 22:54:00] Bad URL /dists directory does not exist on any server
[9728 22:54:01] Die Sep 23 22:54:01 CEST 2003 Request
/non-US/dists/stable/non-US/non-free/binary-i386/Packages.gz
[9728 22:54:02] Bad URL /dists directory does not exist on any server
[9818 22:54:02] Die Sep 23 22:54:02 CEST 2003 Request
/non-US/dists/stable/non-US/non-free/binary-i386/Release
[9818 22:54:03] Bad URL /dists directory does not exist on any server
[9908 22:54:04] Die Sep 23 22:54:04 CEST 2003 Request
/security/dists/stable/updates/main/binary-i386/Packages.gz
[9908 22:54:04] Bad URL /dists directory does not exist on any server
[10001 22:54:05] Die Sep 23 22:54:05 CEST 2003 Request
/security/dists/stable/updates/main/binary-i386/Release
[10001 22:54:06] Bad URL /dists directory does not exist on any server
[10094 22:54:07] Die Sep 23 22:54:07 CEST 2003 Request
/security/dists/stable/updates/contrib/binary-i386/Packages.gz
[10094 22:54:07] Bad URL /dists directory does not exist on any server
[10187 22:54:08] Die Sep 23 22:54:08 CEST 2003 Request
/security/dists/stable/updates/contrib/binary-i386/Release
[10187 22:54:09] Bad URL /dists directory does not exist on any server
[10280 22:54:10] Die Sep 23 22:54:10 CEST 2003 Request
/security/dists/stable/updates/non-free/binary-i386/Packages.gz
[10280 22:54:11] Bad URL /dists directory does not exist on any server
[10373 22:54:12] Die Sep 23 22:54:12 CEST 2003 Request
/security/dists/stable/updates/non-free/binary-i386/Release
[10373 22:54:13] Bad URL /dists directory does not exist on any server
BTW: Ich habe die drei angelegten Verzeichnisse händisch dem Benutzer
aptproxy zugewiesen:
p500:/var/cache/apt-proxy# ll
insgesamt 12
drwxr-xr-x 3 aptproxy root 4096 23. Sep 23:10 debian
drwxr-xr-x 3 aptproxy root 4096 23. Sep 23:02 non-US
drwxr-xr-x 3 aptproxy root 4096 23. Sep 23:02 security
Warum funktioniert das immer noch nicht? Muß ich da alle Verzeichnisse
händisch anlegen?
Grüße
Oliver
Reply to: