[Bug 2103880] [NEW] debootstrap incorrectly uses ProxyAutoDetect

Will Rouesnel 2103880 at bugs.launchpad.net
Sat Mar 22 23:18:18 UTC 2025


Public bug reported:

When running debootstrap with `Acquire::http::ProxyAutoDetect` the
result of the command used by debootstrap is incorrect.

According to `apt` the result of "no proxy" is to return the string
"DIRECT". However debootstrap simply stores the result of the command
into http_proxy verbatim, which breaks subsequent curl requests as it is
an invalid proxy string.

The attached patch shows the basic change necessary to fix this.

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

** Patch added: "debootstrap.patch"
   https://bugs.launchpad.net/bugs/2103880/+attachment/5866558/+files/debootstrap.patch

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

Title:
  debootstrap incorrectly uses ProxyAutoDetect

Status in debootstrap package in Ubuntu:
  New

Bug description:
  When running debootstrap with `Acquire::http::ProxyAutoDetect` the
  result of the command used by debootstrap is incorrect.

  According to `apt` the result of "no proxy" is to return the string
  "DIRECT". However debootstrap simply stores the result of the command
  into http_proxy verbatim, which breaks subsequent curl requests as it
  is an invalid proxy string.

  The attached patch shows the basic change necessary to fix this.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/2103880/+subscriptions




More information about the foundations-bugs mailing list