[Bug 814130] [NEW] Acquire::http::ProxyAutoDetect is executed multiple times for each host

Lekensteyn 814130 at bugs.launchpad.net
Thu Jul 21 15:20:53 UTC 2011


Public bug reported:

For each host that is involved in an update/ installation, APT executes the command set in Acquire::http::ProxyAutoDetect. On a default installation, sudo apt-get update executed the command twice because archive.ubuntu.com and security.ubuntu.com are both mentioned in /etc/apt/sources.conf. As PPAs are commonly used, this increases to three.
With a lot of third-party repository sources, this number rises a lot. If the proxy detection command is slow, there might be a delay during the source lists updates and package installations.

Affected versions:
0.8.13.2ubuntu4.1 (Ubuntu Natty)
0.7.25.3ubuntu9.5 (Ubuntu Lucid)
0.8.15.2 (Debian unstable)

Steps to reproduce:
1. Create /etc/apt/print-message containing:
#!/bin/sh
echo CALLED >&2
2. Create /etc/apt/apt.conf.d/30proxy-test containing:
Acquire::http::ProxyAutoDetect "/etc/apt/print-message";
3. Run sudo apt-get update or install a PPA package which depends on a package from the official repos which is not installed yet
4. Clean up by removing /etc/apt/apt.conf.d/30proxy-test and /etc/apt/print-message

What I expected to happen:
CALLED should be printed once

What happened instead:
CALLED is printed a few times for each involved host.

** Affects: apt
     Importance: Undecided
         Status: New

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: apt
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/814130

Title:
  Acquire::http::ProxyAutoDetect is executed multiple times for each
  host

Status in APT:
  New
Status in “apt” package in Ubuntu:
  New

Bug description:
  For each host that is involved in an update/ installation, APT executes the command set in Acquire::http::ProxyAutoDetect. On a default installation, sudo apt-get update executed the command twice because archive.ubuntu.com and security.ubuntu.com are both mentioned in /etc/apt/sources.conf. As PPAs are commonly used, this increases to three.
  With a lot of third-party repository sources, this number rises a lot. If the proxy detection command is slow, there might be a delay during the source lists updates and package installations.

  Affected versions:
  0.8.13.2ubuntu4.1 (Ubuntu Natty)
  0.7.25.3ubuntu9.5 (Ubuntu Lucid)
  0.8.15.2 (Debian unstable)

  Steps to reproduce:
  1. Create /etc/apt/print-message containing:
  #!/bin/sh
  echo CALLED >&2
  2. Create /etc/apt/apt.conf.d/30proxy-test containing:
  Acquire::http::ProxyAutoDetect "/etc/apt/print-message";
  3. Run sudo apt-get update or install a PPA package which depends on a package from the official repos which is not installed yet
  4. Clean up by removing /etc/apt/apt.conf.d/30proxy-test and /etc/apt/print-message

  What I expected to happen:
  CALLED should be printed once

  What happened instead:
  CALLED is printed a few times for each involved host.

To manage notifications about this bug go to:
https://bugs.launchpad.net/apt/+bug/814130/+subscriptions




More information about the foundations-bugs mailing list