[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#505016: apt sometimes hangs after downloading



FYI,

I saw something similar using an automated network preseed installer. It looks like it might be a threshold thing, because the installer worked until we got past approximately 750 packages. After that I got deadlocks +50% of the time during installs. It just hung there after download had completed and never continued on with the install.

I actually installed strace in the installer before the big "apt-get install ..." command to see what was happening. See the attached strace output snippet.

I fixed my issue by simply splitting the package installation command into two separate "apt-get install ..." lines and now it works reliably again.

Tony
...
14704 write(4, "\340\306#\261\17\367\231\300V\304_\262\272\22\321\7:\250\244\375B\371\352\351TP\372g5\343\376/\2"..., 1448) = 1448
14704 select(5, [0 3], [], NULL, {120, 0}) = 1 (in [3], left {120, 0})
14704 read(3, "\226\317\307\235W$)sPE|kY\210\372\376p>]%\360\257\365\325 \2169r\212\333|\371\363"..., 22213) = 1204
14704 read(3, 0x91faabf, 21009)         = -1 EAGAIN (Resource temporarily unavailable)
14704 select(5, [0 3], [4], NULL, {120, 0}) = 1 (out [4], left {120, 0})
14704 write(4, "\226\317\307\235W$)sPE|kY\210\372\376p>]%\360\257\365\325 \2169r\212\333|\371\363"..., 1204) = 1204
14704 close(4)                          = 0
14704 time(NULL)                        = 1240442243
14704 utime("/var/cache/apt/archives/partial/libpng12-dev_1.2.27-2+lenny2_i386.deb", [2009/03/19-20:05:02, 2009/03/19-20:05:02]) = 0
14704 write(1, "201 URI Done\nURI: http://security";..., 471) = 471
14702 <... select resumed> )            = 1 (in [19], left {0, 384000})
14702 read(19, "201 URI Done\nURI: http://security";..., 64000) = 471
14702 rename("/var/cache/apt/archives/partial/libpng12-dev_1.2.27-2+lenny2_i386.deb", "/var/cache/apt/archives/libpng12-dev_1.2.27-2+lenny2_i386.deb") = 0
14702 select(24, [19 20 21 23], [], NULL, {0, 500000} <unfinished ...>
14704 select(1, [0], NULL, NULL, NULL <unfinished ...>
14702 <... select resumed> )            = 0 (Timeout)
14702 select(24, [19 20 21 23], [], NULL, {0, 500000}) = 0 (Timeout)
14702 select(24, [19 20 21 23], [], NULL, {0, 500000}) = 0 (Timeout)
14702 select(24, [19 20 21 23], [], NULL, {0, 500000}) = 0 (Timeout)
... (forever)

Reply to: