Bug#525989: Workarounds doesn't work
I have exactly the same problem: After updating from Lenny to Squeeze the file /etc/default/approx is silently gone and approx doesn't work anymore. If I don't use approx and enter the direct destinations in /etc/apt/sources.list, apt-get is working fine (if I export the http_proxy first). I tried the two workarounds described above. First I created a file /usr/sbin/approx_start with the following content: #!/bin/sh export http_proxy=http://DOMAIN\\username:password@192.168.0.1:8080/ exec /usr/sbin/approx And modified the line in /etc/inetd.conf to: stream tcp nowait approx /usr/sbin/approx_start /usr/sbin/approx_start After this I restarted inetd. But apt-get update still can't connect. I only get errors like this (german localization): Ign http://127.0.0.1 squeeze Release.gpg Fehl http://127.0.0.1 squeeze/main Packages 301 Moved Permanently I added the lines $verbosetrue $debug true to the file /etc/approx/approx.conf to get any idea what the problem may be, but nothing shows up in the logfiles. It's if approx isn't even started. I also tried the other workaround and entered the line export http_proxy=http://DOMAIN\\username:password@192.168.0.1:8080/ in a file /etc/default/openbsd-inetd and restartet the inetd, but no change at all. Installed versions: ii approx 4.5-1caching proxy server for Debian archive files ii openbsd-inetd 0.20080125-6 The OpenBSD Internet Superserver Any suggestions? Or is it possible to start approx without inetd? -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#525989: Workarounds doesn't work
On Thu, Apr 14, 2011 at 08:46:39AM +0200, Tom Schmitt wrote: I tried the two workarounds described above. First I created a file /usr/sbin/approx_start with the following content: #!/bin/sh export http_proxy=http://DOMAIN\\username:password@192.168.0.1:8080/ exec /usr/sbin/approx And modified the line in /etc/inetd.conf to: stream tcp nowait approx /usr/sbin/approx_start /usr/sbin/approx_start After this I restarted inetd. Did you make the approx_start file executable? I also tried the other workaround and entered the line export http_proxy=http://DOMAIN\\username:password@192.168.0.1:8080/ in a file /etc/default/openbsd-inetd and restartet the inetd, but no change at all. openbsd-inetd does not pass all its environment variables to the programs it starts, so this won't work unless you pass the -E option, by adding OPTIONS=-E to /etc/default/openbsd-inetd and restarting it. Any suggestions? Please also try the second workaround in the FAQ (using the env command): stream tcp nowait approx /usr/bin/env /usr/bin/env http_proxy=http://DOMAIN\\username:password@192.168.0.1:8080/ /usr/sbin/approx -- Eric Cooper e c c @ c m u . e d u -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org