NCurses confirmation dialog should select ok button by default

Bug #117377 reported by Mjpatey
56
Affects Status Importance Assigned to Milestone
newt (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

It is hard for novice users to discover that you can switch widgets in debconf's ncurses frontend by using tab. Since the ok button is not selected, this turns confirmation dialogs into a dead end.

See the original bug report:

Binary package hint: update-manager

While installing the .deb archive for VirtualBox in Feisty, the install brings up a dialog inside the Terminal (which can be viewed by clicking the reveal arrow in the package manager, but can't be clicked on). The dialog is in the terminal, and requires me to hit "Ok" or maybe the Enter key to continue installation. But because this "terminal viewer" is inside the package manager GUI, it's not a real Terminal window, and typing "Ok" or hitting Enter does nothing.

So the installation just hung there for 30 minutes or so, waiting for a response from me that I'm not able to give.

I tried ending the process, but couldn't find it in the Process list. So I rebooted.

Now, when I try to install ANYTHING, I get the following error:

Could not initialize the package information
A unresolvable problem occurred while initializing the package information.
Please report this bug against the 'update-manager' package and include the following error message:
'E:The package virtualbox needs to be reinstalled, but I can't find an archive for it.'

So I'm reporting it as it asked me to.

Any idea how to resolve this? Until I do, I can't install anything!

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

It is a real terminal window. Seems to be bug of virtualbox that you should report to them.

Download the package again and try to install it from the command line using "sudo dpkg -i PACKAGE"

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

The Debian and Ubuntu packaging policy do not allow to ask for user input in the terminal by the way. There is debconf.

Changed in update-manager:
status: Unconfirmed → Rejected
Revision history for this message
Mjpatey (mjpatey) wrote : Re: [Bug 117377] Re: Package installation crashed update-manager

Sebastian,

Thanks for your input into my problem. I've tried the command "sudo dpkg -i
VirtualBox_1.3.8_Ubuntu_feisty_i386.deb, but again it brings up the screen
that asks me to select "Ok", and I have no way to do so.

Here's a link to a screenshot of the problem in action:

http://mjpatey.getmyip.com/Screenshot-1.png

I don't know how to tell it "Ok". Is there any other way to remove this
partially-installed package? Until I do, I can't install updates or any new
packages. If you know of no other way to fix my system, I'll report this to
VirtualBox and see what they have to say.

Thanks again,

-Mark

On 5/28/07, Sebastian Heinlein <email address hidden> wrote:
>
> It is a real terminal window. Seems to be bug of virtualbox that you
> should report to them.
>
> Download the package again and try to install it from the command line
> using "sudo dpkg -i PACKAGE"
>
> --
> Package installation crashed update-manager
> https://bugs.launchpad.net/bugs/117377
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Matt Dittloff (mattdittloff) wrote : Re: Package installation crashed update-manager

Hello everyone,

I am having the exact same problem as Mjpatey. I tried installing the .deb file for VirtualBox. I got that screen with the "OK" button, which I had to reboot to get out of.

And now Update manager does not work for me anymore. I get that same error message.

If simply attempting to install a package breaks the update manager, then that is NOT GOOD! I too would like to remove this package from my system.

Revision history for this message
Matt Dittloff (mattdittloff) wrote :

I also get this error message when I try to use Synaptic Package Manager.

E: The package virtualbox needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.

Changed in update-manager:
status: Invalid → Incomplete
Revision history for this message
Matt Dittloff (mattdittloff) wrote :

I found the answer at:
https://answers.launchpad.net/ubuntu/+source/gdebi/+question/7135

> No, you don't need to reinstall, we'll be able to solve that problem.
>
> Please run:
>
> sudo dpkg --force-remove-reinstreq --remove virtualbox
>
> This way, we're telling the package management that we know the package is in
> a inconsistent state and we don't care about it. As I'm quite interessted in
> what went wrong, it would be nice if you copy and paste the output of the
> command to this question. Thanks!

This worked for me.

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

You have to press tab to select the ok button and afterwards return.

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

By the way you should gdebi if you are not familiar with installing packages from the command line: just double click on the package. instead of the text based dialog a graphical one will be used.

description: updated
description: updated
Revision history for this message
Colin Watson (cjwatson) wrote :

This is newt's problem. To reproduce, try:

  whiptail --msgbox 'Test' --scrolltext 10 70

Ideally it would focus the button but permit up/down keystrokes while that button is focused to scroll the text box.

Changed in debconf:
status: Incomplete → Triaged
Revision history for this message
Mjpatey (mjpatey) wrote :

Colin,

I agree! That way would be much more intuitive. A good friend suggested I try "tab" to switch focus to the Ok button, and of course, it worked. But without that knowledge, I think a lot of people might end up canceling the installation like I did.

Thanks to all of you who've looked into this. Maybe Colin's suggestion can be implemented at some point... how can one make that happen?

-Mark

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.