tool used to download packages?

Andy Harrison aharrison at gmail.com
Wed Feb 7 18:20:24 GMT 2007


On 2/7/07, Joe Hart <j.hart at orange.nl> wrote:
> I have to agree with you Nathan.  I've never heard of quite a few of
> those repos, but I think I will check them out.  As I read just recently
> in this mailing list "you've piqued my curiosity".
>

A lot of them were added for specific apps, but a few of them I may
have just found while reading documentation here and there.

I did manage to find out how to do a little tweaking of the download
process.  I edited the /etc/apt/apt.conf.d/01ubuntu file and added the
lines:

  Acquire::http::Pipeline-Depth "0";
  Acquire::http::Timeout "10";
  Acquire::ftp::Timeout "10";
  Acquire::Retries "1";

This works great when running apt-get from the commandline.

I noticed I could always reproduce timeouts when downloading from
security.ubuntu.com.  Just for testing, I was trying to install karbon
and it was automatically trying to download karbon from that
repository.  While apt-get would get a timeout and then keep right on
rolling to the next repository, adept does not.  Adept segfaults
immediately when it reaches the timeout period.  Running strace on
adept showed it receive a 400 URI Failure right before it crashed.
When running adept in foreground mode so that I could get coredump
(adept_manager --nofork --sync --nocrashhandler) I could see the
following error when I run strings on the core dump:

400 URI Failure
URI: http://security.ubuntu.com/ubuntu/pool/main/k/koffice/karbon_1.5.2-0ubuntu2.1_i386.deb
Message: Connection timed out
Transient-Failure: true

Adept would crash after appearing to be stuck on a package for me even
before I altered these settings, I just wasn't sure why.  Now I know
it was just sitting there until it finally hit the timeout period
which is much longer by default.  So a big part of these problems are
simply bugs in adept.

I tried various settings to see if it would help, but the bottom line
is that adept will always crash when it a timeout occurs.

-- 
Andy Harrison



More information about the kubuntu-users mailing list