tags 448794 confirmed severity 448794 minor thanks On 10/31/07, Julian Gilbey <[EMAIL PROTECTED]> wrote: > When trying to download large packages, such as libgnome2-common, > aptitude sometimes gives up before debtorrent has had time to download > the whole package. The error is something like "Connection failed", > which is also meaningless. Running aptitude a second or third time > provides enough time for the package to finish downloading, so it then > succeeds.
Thanks for the report. This is a known problem, which results from the random order of BitTorrent downloads. Therefore, the file can't be started to be passed to aptitude/apt until the download is complete. In the case of large files or slow connections this delay may cause aptitude/apt to time out and think that the download is broken. Possible Workarounds: 1. After apt times out, wait for the download to complete (monitor it at http://localhost:9988), then tell apt to try again since the file is now available locally. 2. Install the apt-transport-debtorrent package and use debtorrent:// type URLs in your sources.list file instead of http://. The debtorrent transport has longer timeouts and will pass files out of order in the case of multiple file downloads rather than waiting for that one large file to download. 3. Increase the timeout by putting 'Acquire::http::Timeout "600";' (or 'Acquire::debtorrent::Timeout "600";' in the case of the debtorrent:// transport) in your apt.conf file. Increase 600 (its in seconds) appropriately. Probably the best is to use (2) first, then (3) if you still have problems, all the while using (1) to get around the individual failures that occur. Future Solutions: I am working on a better long-term solution to this problem, which will involve sending status updates to apt using the debtorrent:// transport protocol. If you're interested, more details of the proposed solution can be found here: http://wiki.debian.org/DebTorrent/AptInteraction Unfortunately it requires modifications to the apt package to do it right, so implementing this is slowed by the complexity of it, and having to work together with the apt packagers to get changes made there. I'm confident it will eventually get done though. Thanks, Cameron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]