Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling the allow-kernel-type-selection option breaks the kernels window #915

Open
1 of 3 tasks
alankeny opened this issue Jan 19, 2025 · 0 comments
Open
1 of 3 tasks
Labels

Comments

@alankeny
Copy link

Describe the bug
After upgrading Linux Mint from 22.0 to 22.1, the Linux Kernels window in Update Manager no longer opens while the allow-kernel-type-selection option is enabled.

Screenshots
Not applicable.

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade Linux Mint from 22.0 to 22.1.
  2. In a terminal execute the command dconf write /com/linuxmint/updates/allow-kernel-type-selection true
  3. Launch Update Manager
  4. From the View menu, select the Linux Kernels option
  5. Update Manager never opens the Kernels window

Expected behavior
The kernels window should open with the option to select a Kernel flavor from a pop-up menu in the lower left corner.

Distribution:

  • Linux Mint
  • LMDE
  • Other (please specify)

Software version:
7.0.5

Logs:
Not applicable, please see crash reports.

Crash report:
First run:

Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintUpdate/mintUpdate.py", line 1900, in on_kernel_menu_activated
    KernelWindow(self.on_kernel_window_closed)
  File "/usr/lib/linuxmint/mintUpdate/kernelwindow.py", line 227, in __init__
    self.kernel_type_combo.append_text(kernel_type[1:])
    ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'KernelWindow' object has no attribute 'kernel_type_combo'. Did you mean: 'ui_kernel_type_combo'?

After making the suggested change, second run:

Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintUpdate/mintUpdate.py", line 1900, in on_kernel_menu_activated
    KernelWindow(self.on_kernel_window_closed)
  File "/usr/lib/linuxmint/mintUpdate/kernelwindow.py", line 229, in __init__
    self.kernel_type_combo.set_active(index)
    ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'KernelWindow' object has no attribute 'kernel_type_combo'. Did you mean: 'ui_kernel_type_combo'?

After making the suggested change, third run:

Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintUpdate/mintUpdate.py", line 1900, in on_kernel_menu_activated
    KernelWindow(self.on_kernel_window_closed)
  File "/usr/lib/linuxmint/mintUpdate/kernelwindow.py", line 230, in __init__
    self.ui_kernel_type_combo.connect("changed", on_kernel_type_combo_changed)
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'on_kernel_type_combo_changed' is not defined. Did you mean: 'self.on_kernel_type_combo_changed'?

Additional context
After making all three suggested changes, the Kernel window opens and displays the Kernel flavor pop-up menu as expected. I can't speak to the quality of the changes suggested, other than the window opens.

Locale:
Not applicable.

kernelwindow.py.txt

@alankeny alankeny added the BUG label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant