[SRU] "Install Now" button disappears for good if all packages unselected and Ubuntu Pro packages are shown but unavailable

Bug #2068805 reported by Tormod Volden
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Nathan Teodosio
Xenial
Confirmed
Undecided
Unassigned
Bionic
Confirmed
Undecided
Unassigned
Focal
Confirmed
Undecided
Unassigned
Jammy
Confirmed
Undecided
Unassigned
Noble
Confirmed
Undecided
Unassigned
Oracular
Confirmed
Undecided
Unassigned

Bug Description

[Impact]

If one deselects all packages, the "Install Now" button disappears, which makes sense (on another note it would make even more sense if it was simply grayed out). However when one or more packages are then re-selected, the button won't ever reappear, and update-manager must be restarted in order to upgrade any packages.

[Test case]

*If 'apt list --upgradable' is empty, downgrade any one package in your system.
*ua detach --assume-yes
*apt install hello
*update-manager
-There will be at least one update available, and the hello package will be unavailable under the 'Ubuntu Pro security updates' section.
*De-select all available packages.
-The 'install now' button disappears.
*Select at least one available package.
-The 'install now' button should reappear.

[Where things could go wrong]

Things could go wrong with the 'install now' button. It should be visible when there is any available package selected and not visible when there is none selected.

Tags: noble

Related branches

tags: added: noble
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

You say "update-manager 1:24.04.6 (Ubuntu 20.04)" but tagged the bug Noble, can you please correct that?

Changed in update-manager (Ubuntu):
status: New → Incomplete
description: updated
Changed in update-manager (Ubuntu):
status: Incomplete → New
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Here the window simply goes unresponsive and segfaults. Won't submit crash files, Whoopsie wants me to upgrade the entire system before doing so.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Tormod Volden (tormodvolden) wrote (last edit ):

I think you got segfaults because you hit bug #2027941 (or #2041831, the "secret" report, dunno which one should be made duplicate). I guess you used a mouse click to deselect :) If you use the spacebar to deselect, you can probably reproduce this bug.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Nathan, now that 2041831/2027941 has been fixed, I hope you can come back to this and reproduce the issue.

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Can't reproduce, here the button is simply turned grey, do you see anything in the screen shot that is not there in your case?

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Do you have "You need to enable Ubuntu Pro to install these updates." written in the program? Can you please send in a screen shot?

Revision history for this message
Tormod Volden (tormodvolden) wrote :

The screenshot shows the absence of the "Install Now" button.

$ lsb_release -c
No LSB modules are available.
Codename: noble
$
$ update-manager --version
WARNING:root:can not import unity GI Namespace Dbusmenu not available
update-manager: version 24.04.9
$

Revision history for this message
Tormod Volden (tormodvolden) wrote :
Revision history for this message
Tormod Volden (tormodvolden) wrote :

The message "You need to enable Ubuntu Pro to install these updates." is written exactly when the button disappears, or actually at any time that no packages are selected any longer.

Changed in update-manager (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
assignee: nobody → Nathan Teodosio (nteodosio)
summary: - "Install Now" button disappears for good if all packages unselected
+ "Install Now" button disappears for good if all packages unselected and
+ Ubuntu Pro packages are shown but unavailable
Changed in update-manager (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: "Install Now" button disappears for good if all packages unselected and Ubuntu Pro packages are shown but unavailable

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in update-manager (Ubuntu Bionic):
status: New → Confirmed
Changed in update-manager (Ubuntu Focal):
status: New → Confirmed
Changed in update-manager (Ubuntu Jammy):
status: New → Confirmed
Changed in update-manager (Ubuntu Noble):
status: New → Confirmed
Changed in update-manager (Ubuntu Xenial):
status: New → Confirmed
Changed in update-manager (Ubuntu):
status: Fix Committed → Fix Released
Changed in update-manager (Ubuntu Oracular):
status: New → Confirmed
description: updated
summary: - "Install Now" button disappears for good if all packages unselected and
- Ubuntu Pro packages are shown but unavailable
+ [SRU] "Install Now" button disappears for good if all packages
+ unselected and Ubuntu Pro packages are shown but unavailable
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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