Thanks, found the package.py in Bazaar. The problematic 2-second timeout was introduced in rev 305 in the end of November 2008. Before the rev 305 there was no timeout at all.
Could anyone with knowledge of python-apt test increasing the timeout in package.py from 2 to 10 seconds and comment on this fix ? Here is when the 2-second timeout appeared first: merged from the consolidation-bracn (with some modificatins) // Michael Vogt 2008-11-24 http://bazaar.launchpad.net/~mvo/python-apt/python-apt--mvo/annotate/head%3A/apt/package.py === modified file 'apt/package.py' --- apt/package.py 2008-09-18 12:58:03 +0000 +++ apt/package.py 2008-11-24 13:46:48 +0000 @@ -19,10 +19,18 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA -import apt_pkg +import httplib import sys import random +import re +import socket import string +import urllib2 + +import apt_pkg + +# Set a timeout for the changelog download +socket.setdefaulttimeout(2) #from gettext import gettext as _ import gettext -- Apport unable to report crash - urlopen error timed out https://bugs.launchpad.net/bugs/314212 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
