Here are the steps to collect debugging log. And the daemon log Enable debugging on approx server changed /etc/approx/approx.conf debian http://ftp.pl.debian.org/debian $debug true Restart approx service # /etc/init.d/openbsd-inetd restart [ ok ] Restarting openbsd-inetd (via systemctl): openbsd-inetd.service. further more, create local repository, then try apt-get update or apt-get install, still got 404 bad request -- create local repository # dpkg-scanpackages /packages/ /dev/null |gzip >/var/cache/approx/debian/dists/jessie/main/binary-amd64/Packages.gz -- /etc/apt/source.list deb http://127.0.0.1:80/debian jessie packages -- apt-get install root@XXXXXX:/var/cache/approx/debian/dists/jessie/main/binary-amd64# apt-get install python Reading package lists... Done Building dependency tree Reading state information... Done Package python is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: python-minimal E: Package 'python' has no installation candidate -- apt-get update root@XXXXXX :/var/cache/approx/debian/dists/jessie/main/binary-amd64# apt-get update Ign http://127.0.0.1:80 jessie InRelease Ign http://127.0.0.1:80 jessie Release.gpg Ign http://127.0.0.1:80 jessie Release Err http://127.0.0.1:80 jessie/packages amd64 Packages 400 Bad Request Ign http://127.0.0.1:80 jessie/packages Translation-en_HK Ign http://127.0.0.1:80 jessie/packages Translation-en W: Failed to fetch http://127.0.0.1:80/debian/dists/jessie/packages/binary-amd64/Packages 400 Bad Request E: Some index files failed to download. They have been ignored, or old ones used instead. collect /var/log/daemon.log -- daemon.log for approx portion Mar 7 19:42:12 5goneSCT-TBR approx[16334]: Connection from 10.140.60.223 port 63200 Mar 7 19:42:12 5goneSCT-TBR approx[16334]: Request: GET /debian Mar 7 19:42:12 5goneSCT-TBR approx[16334]: Accept: */* Mar 7 19:42:12 5goneSCT-TBR approx[16334]: Accept-Language: zh-CN Mar 7 19:42:12 5goneSCT-TBR approx[16334]: User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3) Mar 7 19:42:12 5goneSCT-TBR approx[16334]: Accept-Encoding: gzip, deflate Mar 7 19:42:12 5goneSCT-TBR approx[16334]: Host: 10.140.23.56 Mar 7 19:42:12 5goneSCT-TBR approx[16334]: Connection: Keep-Alive Mar 7 19:42:12 5goneSCT-TBR approx[16334]: => cache miss Mar 7 19:42:12 5goneSCT-TBR approx[16334]: Command: /usr/bin/curl --fail --silent --header "Pragma: no-cache" --include "http://ftp.pl.debian.org/debian" Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Connection from 10.140.60.223 port 63204 Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Request: GET / Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, */* Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Accept-Language: zh-CN Mar 7 19:42:18 5goneSCT-TBR approx[16337]: User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3) Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Accept-Encoding: gzip, deflate Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Host: 10.140.23.56 Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Connection: Keep-Alive Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Connection from 10.140.60.223 port 63204 Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Request: GET /favicon.ico Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Accept: */* Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Accept-Encoding: gzip, deflate Mar 7 19:42:18 5goneSCT-TBR approx[16337]: User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3) Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Host: 10.140.23.56 Mar 7 19:42:18 5goneSCT-TBR approx[16337]: Connection: Keep-Alive Mar 7 19:42:18 5goneSCT-TBR approx[16337]: No remote repository for favicon.ico Mar 7 19:44:19 5goneSCT-TBR approx[16334]: Command [/usr/bin/curl --fail --silent --header "Pragma: no-cache" --include "http://ftp.pl.debian.org/debian"] exited with status 7 Mar 7 19:44:19 5goneSCT-TBR approx[16334]: http://ftp.pl.debian.org/debian: download error Mar 7 19:44:19 5goneSCT-TBR approx[16334]: Nethttpd: Broken pipe
发自我的 iPhone > 在 2017年3月7日,06:42,Eric Cooper <e...@cmu.edu> 写道: > > Please enable debugging on your approx server (add "$debug true" to > /etc/approx.conf) and send the relevant portion of /var/log/daemon.log > from the server when this problem occurs. Thanks. > > -- > Eric Cooper e c c @ c m u . e d u