[Bug 1005597] Re: apt-key net-update timeout = 12 hours

Roman Shipovskij RoMan.Shipovskij at gmail.com
Mon May 28 17:29:26 UTC 2012


** Patch added: "usr-bin-apt-key.patch"
   https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1005597/+attachment/3167039/+files/usr-bin-apt-key.patch

-- 
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/1005597

Title:
  apt-key net-update timeout = 12 hours

Status in “apt” package in Ubuntu:
  New

Bug description:
  release: Ubuntu 12.04 LTS
  package: apt 0.8.16~exp12ubuntu10
  file: /usr/bin/apt-key

  we are using closed network without internet access and local ubuntu mirror,
  all PC configured to make unattended security upgrades every day,
  but i found some PCs that never make upgrades,
  and the problem is as follows:

  cron daily job /etc/cron.daily/apt every time run apt-key net-update
  that uses wget to download key

  /usr/bin/apt-key string 106: (cd  /var/lib/apt/keyrings; wget
  --timeout=90 -q -N $ARCHIVE_KEYRING_URI)

  our routers are not configured to send ICMP Destination Unreachable,
  and wget timeout in this case is:

  24 servers * 90 seconds timeout * 20 wget default tries = 12 hours

  working uptime of most PCs are 9-10 hours, so they are not able to
  completely fulfill their tasks and are not upgraded

  this problem can be simple fix by adding --tries=1 to wget options,
  and timeout will be decreased to 36 minutes:

  24 servers * 90 seconds timeout * 1 wget tries = 36 minutes

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




More information about the foundations-bugs mailing list