Re: apt hangs for ever
-----BEGIN PGP SIGNED MESSAGE-----
Henrique de Moraes Holschuh wrote:
> On Mon, 27 Nov 2006, Andreas Fester wrote:
>> I experienced the same some time ago and worked it around
>> by temporarily switching to a different mirror. It then succeeded,
>> and afterwards I could again switch to my usual mirror.
>> But, yesterday I had the same issue in my i386 chroot, so the issue
>> seems to persist....
> Use --save-after-login and pbuilder login to open the chroot, add the new
> apt key, and only then run the update.
> I don't know where the bug is, but it is directly related to apt key
I tried to track it down; I could reproduce it with non-stripped apt-binaries from
a re-compiled apt source package. pstree showed the following processes while
apt-get was hanging:
apt-get was blocked in a select() called from apt-get.cc:1354
1353 // Run it
1354 if (Fetcher.Run() == pkgAcquire::Failed) // <<==
1355 return false;
bzip/gzip/gpgv were hanging in a select() which was called from WaitFd(),
and http did not show a useful stack trace.
Then, strangely, while still debugging, apt-get update suddenly
worked again (even without updating the apt key), so I was not able to
further examine it ... Maybe the above observations help when it happens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----