Skip to content

uninstalling a kernel also installed a kernel #606

Open

Description

@philipzae

Describe the bug
When uninstalling the 4.15 kernel, the 5.0.0-32 kernel was installed.

To Reproduce
Steps to reproduce the behavior:

  1. Install Linux Mint 19.2
  2. Upgrade to 19.3
  3. Install the 5.0.0-37 kernel in the Kernels app
  4. Restart so it will start using the 5.0.0-37 kernel
  5. In the Kernels app, uninstall the 4.15.0-20 kernel

Expected behavior
It not install the 5.0.0-32 kernel

Distribution:

  • Linux Mint
  • LMDE
  • Other (please specify)

Software version:
5.5.9

Additional context
Here is the change log from /var/log/apt/history.log

Start-Date: 2020-02-26  23:44:12
Commandline: /usr/sbin/synaptic --hide-main-window --non-interactive --parent-window-id 60817421 -o Synaptic::closeZvt=true --set-selections-file /tmp/tmpi4yu6lmx
Requested-By: jay (1000)
Install: linux-headers-5.0.0-32:amd64 (5.0.0-32.34~18.04.2, automatic), linux-modules-extra-5.0.0-32-generic:amd64 (5.0.0-32.34~18.04.2, automatic), linux-headers-5.0.0-32-generic:amd64 (5.0.0-32.34~18.04.2, automatic), linux-modules-5.0.0-32-generic:amd64 (5.0.0-32.34~18.04.2, automatic), linux-image-5.0.0-32-generic:amd64 (5.0.0-32.34~18.04.2, automatic)
Upgrade: linux-kernel-generic:amd64 (4.15.0-20, 5.0.0-32)
Purge: linux-modules-extra-4.15.0-20-generic:amd64 (4.15.0-20.21), linux-headers-4.15.0-20:amd64 (4.15.0-20.21), linux-modules-4.15.0-20-generic:amd64 (4.15.0-20.21), linux-headers-4.15.0-20-generic:amd64 (4.15.0-20.21), linux-image-4.15.0-20-generic:amd64 (4.15.0-20.21)
End-Date: 2020-02-26  23:45:16

Activity

  1. LinuxOnTheDesktop commented on Jan 26, 2022

    @LinuxOnTheDesktop
    Contributor

    I may have encountered this bug, just now on Mint 20.3.

    I had uninstalled some 5.13 kernels, using the Update Manager. After I had done that, the manager offered to install a 5.13 kernel, even though no kernels on that branch remain installed (and I was actually running a 5.13 kernel). Removing packages left over from the 5.13 kernel installations (doing so via sudo apt-get autoremove && sudo apt clean && sudo apt autoclean) did not stop the behaviour. Nor did restarting Update Manager. Nor does apt itself offer me the update. Screenshot:

    image

  2. AlexeyMarkarov commented on Jul 17, 2024

    @AlexeyMarkarov

    I think I found an easy way to reproduce this:

    1. Have multiple kernels installed, for example 6.5.0-41 and 6.5.0-28
    2. Disconnect from the network.
    3. Go to View -> Linux Kernels and use either Remove or Queue Removal + Perform Queued Actions buttons on an older kernel.
    4. Downloading Package Files dialog appears.
    5. Removal of 6.5.0-28 kernel fails with network errors trying to fetch 6.5.0-44 kernel:

      W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux-hwe-6.5/linux-modules-6.5.0-44-generic_6.5.0-
      44.44%7e22.04.1_amd64.deb
      Could not resolve 'archive.ubuntu.com'

    System info:
    Linux Mint 21.3
    mintupdate 6.0.9

  3. github-actions commented on Jul 19, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had
    any activity in over 2 years.

    If this issue is still relevant:

    • Please test on a current version of this package.
    • Add a comment with your findings

    If no activity occurs in the next 30 days, this issue will be
    automatically closed. Issues can be reopened if needed.

  4. LinuxOnTheDesktop commented on Jul 19, 2026

    @LinuxOnTheDesktop
    Contributor

    I tried to check whether the problem persists on Mint 22.3. I failed - because of the following problem (to which cf. perhaps #591 and #51). I had mintupdate open. I disconnected my network. The system froze. It has been frozen for some five minutes now. I found that I cannot even open a tty. I had to 'raise elephants'. After a reboot, the System Information tool found no crash report.

  5. AlexeyMarkarov commented on Jul 20, 2026

    @AlexeyMarkarov

    I can't reproduce this using steps from my message. At some point a while ago I got the same issue with plain apt, so Mint is likely not at fault here, and it appears to have been fixed upstream by now.

    Mint 22.3, mintupdate 7.1.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions