apt-key net-update timeout = 12 hours

Bug #1005597 reported by Roman Shipovskij on 2012-05-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)

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

The attachment "usr-bin-apt-key.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers