aptitude automatically beginning an upgrade without waiting for user consent

Bug #216692 reported by Joseph Wakeling
4
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: aptitude

I have observed this problem in Hardy with the aptitude package manager, but others have reported something similar with apt-get: see discussion at http://ubuntuforums.org/showthread.php?t=753018

Essentially it seems to come down to aptitude behaving 'as if' the user has pressed the Enter key multiple times, e.g. on occasion when typing 'sudo aptitude update' the output of the update check is followed by about 20 command prompts.

The effect becomes much more serious when it occurs with 'aptitude safe-upgrade' or, even worse, 'full-upgrade', where the 'extra' Enter commands become interpreted as user consent. As a result the upgrades proceed automatically without the user getting their normal chance to confirm.

In the case of full-upgrade in particular this could involve a seriously undesirable alteration to the system taking place without user confirmation.

Revision history for this message
Joseph Wakeling (webdrake) wrote :

One possible way to generate this error may be to run 'sudo aptitude update' twice in quick succession in the same command prompt, when new upgrades are available -- and then run safe-update, where the error will manifest.

Revision history for this message
Sami Cokar (samicokar) wrote :

This is also visible with, "aptitude search osx", a fresh bash prompt will start off OK. repeat the command a few times and you'll notice a number of "returns"

Revision history for this message
Ivo Jimenez (ivotron) wrote :

To me it has become really annoying. I've had to spend several hours fixing my system because it uninstalled a lot of packages.

Revision history for this message
Ivo Jimenez (ivotron) wrote :

This is an example of what's happening. All the blank spaces are 'auto enter'

$ sudo aptitude install vim-gnome
Reading package lists... Done
Building dependency tree... 50%

Building dependency tree
Reading state information... Done

Reading extended state information... 0%

Reading extended state information
Initializing package states... 0%

Initializing package states... Done

Building tag database... 0%

Building tag database... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done

Revision history for this message
Ivo Jimenez (ivotron) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.