apt-get does not run in background
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On Ubuntu 12.04.1, with apt-0.8.
When I run a script that does
...
sudo apt-get -y install cmake
in the background, apt-get hangs. ps -augx | grep apt shows
root 20603 0.9 0.4 38000 29044 pts/1 T 10:14 0:01 apt-get -y install cmake
Attaching with gdb and doing 'bt' says:
#0 0xb775b1b2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0xb74473c3 in __read_nocancel () at ../sysdeps/
#2 0xb76ef403 in pkgDPkgPM:
from /usr/lib/
#3 0xb76f809e in pkgDPkgPM::Go(int) ()
from /usr/lib/
#4 0xb767e94a in pkgPackageManag
from /usr/lib/
#5 0xb767e9b0 in pkgPackageManag
from /usr/lib/
Googling for DoStdin found that this has an upstream bug report already:
http://
Workaround is to redirect stdin.
Hi -
The title says aptitude, but the example is apt-get. Since they're different programs. I guess I'll change the title to apt-get, for clarity.