Bug#857885: regression: Acquire::http::ProxyAutoDetect no longer running script
Hi David, I found the problem! ls -al /usr/local/bin/detect-http-proxy -r-xr--r-- 1 root root 1637 Mar 20 15:48 /usr/local/bin/detect-http-proxy Thu user '_apt' cannot execute the script! Thanks for your help! Chad.
Bug#857885: regression: Acquire::http::ProxyAutoDetect no longer running script
On Wed, Mar 15, 2017 at 09:14:01PM -0500, csights wrote: > It appears that the script listed after Acquire::http::ProxyAutoDetect is > no longer called. We have a few tests covering that option and while adding a few more tests locally to doublecheck I can confirm that they work as intended… (The tests cover Proxy-Auto-Detect, but the non-dashed name is an old alias and I just confirmed that they both work exchangeably. You should be prefering the dashed on your configuration through) So there is something more to your setup causing it to not work as it works just fine here (and in the autopkgtests). Simplest of guess: Are you actually still using 'http' sources or is your stretch system using 'https'? Running "apt update -o Debug::Acquire::http=1" might also shine some light on things as it has a bunch of output. Also check that you haven't proxy environment variables ("export | grep -i proxy") or similar such interfering. Best regards David Kalnischkies signature.asc Description: PGP signature
Bug#857885: regression: Acquire::http::ProxyAutoDetect no longer running script
Package: apt Version: 1.4~rc2 Severity: normal Hello, It appears that the script listed after Acquire::http::ProxyAutoDetect is no longer called. Using the setting Acquire::http::ProxyAutoDetect "/usr/local/bin/detect-http-proxy"; when the contents of /usr/local/bin/detect-http-proxy are: #!/bin/bash echo "here" >> /tmp/proxy_msg I can confirm that on Jessie /tmp/proxy_msg contains: here here here here [...] etc. But on Stretch the file is not created. Thanks for your work! C. -- Package-specific info: -- apt-config dump -- APT ""; APT::Architecture "amd64"; APT::Build-Essential ""; APT::Build-Essential:: "build-essential"; APT::Install-Recommends "1"; APT::Install-Suggests "0"; APT::Sandbox ""; APT::Sandbox::User "_apt"; APT::Authentication ""; APT::Authentication::TrustCDROM "true"; APT::NeverAutoRemove ""; APT::NeverAutoRemove:: "^firmware-linux.*"; APT::NeverAutoRemove:: "^linux-firmware$"; APT::NeverAutoRemove:: "^linux-image-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^linux-image-4\.9\.0-2-amd64$"; APT::NeverAutoRemove:: "^linux-headers-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^linux-headers-4\.9\.0-2-amd64$"; APT::NeverAutoRemove:: "^linux-image-extra-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^linux-image-extra-4\.9\.0-2-amd64$"; APT::NeverAutoRemove:: "^linux-signed-image-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^linux-signed-image-4\.9\.0-2-amd64$"; APT::NeverAutoRemove:: "^kfreebsd-image-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^kfreebsd-image-4\.9\.0-2-amd64$"; APT::NeverAutoRemove:: "^kfreebsd-headers-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^kfreebsd-headers-4\.9\.0-2-amd64$"; APT::NeverAutoRemove:: "^gnumach-image-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^gnumach-image-4\.9\.0-2-amd64$"; APT::NeverAutoRemove:: "^.*-modules-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^.*-modules-4\.9\.0-2-amd64$"; APT::NeverAutoRemove:: "^.*-kernel-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^.*-kernel-4\.9\.0-2-amd64$"; APT::NeverAutoRemove:: "^linux-backports-modules-.*-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^linux-backports-modules-.*-4\.9\.0-2-amd64$"; APT::NeverAutoRemove:: "^linux-tools-4\.9\.0-1-amd64$"; APT::NeverAutoRemove:: "^linux-tools-4\.9\.0-2-amd64$"; APT::VersionedKernelPackages ""; APT::VersionedKernelPackages:: "linux-image"; APT::VersionedKernelPackages:: "linux-headers"; APT::VersionedKernelPackages:: "linux-image-extra"; APT::VersionedKernelPackages:: "linux-signed-image"; APT::VersionedKernelPackages:: "kfreebsd-image"; APT::VersionedKernelPackages:: "kfreebsd-headers"; APT::VersionedKernelPackages:: "gnumach-image"; APT::VersionedKernelPackages:: ".*-modules"; APT::VersionedKernelPackages:: ".*-kernel"; APT::VersionedKernelPackages:: "linux-backports-modules-.*"; APT::VersionedKernelPackages:: "linux-tools"; APT::Never-MarkAuto-Sections ""; APT::Never-MarkAuto-Sections:: "metapackages"; APT::Never-MarkAuto-Sections:: "contrib/metapackages"; APT::Never-MarkAuto-Sections:: "non-free/metapackages"; APT::Never-MarkAuto-Sections:: "restricted/metapackages"; APT::Never-MarkAuto-Sections:: "universe/metapackages"; APT::Never-MarkAuto-Sections:: "multiverse/metapackages"; APT::Move-Autobit-Sections ""; APT::Move-Autobit-Sections:: "oldlibs"; APT::Move-Autobit-Sections:: "contrib/oldlibs"; APT::Move-Autobit-Sections:: "non-free/oldlibs"; APT::Move-Autobit-Sections:: "restricted/oldlibs"; APT::Move-Autobit-Sections:: "universe/oldlibs"; APT::Move-Autobit-Sections:: "multiverse/oldlibs"; APT::Periodic ""; APT::Periodic::Update-Package-Lists "0"; APT::Periodic::Unattended-Upgrade "0"; APT::Update ""; APT::Update::Post-Invoke-Success ""; APT::Update::Post-Invoke-Success:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null"; APT::Update::Post-Invoke-Success:: "if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi"; APT::Architectures ""; APT::Architectures:: "amd64"; APT::Compressor ""; APT::Compressor::. ""; APT::Compressor::.::Name "."; APT::Compressor::.::Extension ""; APT::Compressor::.::Binary ""; APT::Compressor::.::Cost "0"; APT::Compressor::lz4 ""; APT::Compressor::lz4::Name "lz4"; APT::Compressor::lz4::Extension ".lz4"; APT::Compressor::lz4::Binary "false"; APT::Compressor::lz4::Cost "50"; APT::Compressor::gzip ""; APT::Compressor::gzip::Name "gzip"; APT::Compressor::gzip::Extension ".gz"; APT::Compressor::gzip::Binary "gzip"; APT::Compressor::gzip::Cost "100"; APT::Compressor::gzip::CompressArg ""; APT::Compressor::gzip::CompressArg:: "-6n"; APT::Compressor::gzip::UncompressArg ""; APT::Compressor::gzip::UncompressArg:: "-d"; APT::Compressor::xz ""; APT::Compressor::xz::Name "xz";