Upgrading packages at jujud startup can interfere with other operations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Last night I began the process of upgrading my laptop from vivid to wily. I edited /etc/apt/
root 2580 0.1 0.2 428756 27016 ? Sl 01:34 0:00 \_ /home/cjwatson/
root 8731 1.7 0.5 102504 62440 ? S 01:35 0:01 \_ apt-get --option=
root 13279 7.8 0.6 102844 79024 pts/11 Ds+ 01:37 0:00 \_ /usr/bin/dpkg --force-confold --force-unsafe-io --status-fd 89 --unpack --auto-deconfigure /var/cache/
root 13332 0.0 0.0 17524 2160 pts/11 S+ 01:37 0:00 \_ dpkg-deb --fsys-tarfile /var/cache/
root 13333 0.0 0.0 17516 144 pts/11 S+ 01:37 0:00 \_ dpkg-deb --fsys-tarfile /var/cache/
root 13334 0.0 0.0 25720 2040 pts/11 S+ 01:37 0:00 \_ dpkg-deb --fsys-tarfile /var/cache/
Because juju-mongodb depends on various bits of the C++ stack, in the pathological case where the system is part-way through a distribution upgrade, "apt-get install juju-mongodb" ends up trying to upgrade half the system in the cause of getting to the new version. I ended up killing it so that I could run the upgrade in a more sensibly supervised way.
I can see why jujud wants to ensure that these packages are installed, but it seems unnecessary and a layering violation to upgrade them if they're already installed, and it runs the risk of getting into this kind of situation. Could it please use "apt-get install --no-upgrade" so that it's just doing the former rather than the latter?