linuxmint / linuxmint/mintupdate

Directories remain undeleted on kernel removal

Open
#931 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BUG
Dominant language
Python
Stars
425
Forks
190
PR merge metrics
No merged PRs in 30d

Description

LM 22.1 MATE

After removing the old 6.8.0-53 kernel using the Remove function in the kernel section of the Update Manager, I was left with the following directories on my system. Would it be possible to also delete these for any given kernel as part of the removal code?

/usr/lib/linux-tools/6.8.0-53-generic/
/usr/lib/modules/6.8.0-53-generic/
/usr/share/doc/linux-tools-6.8.0-53/
/usr/share/doc/linux-tools-6.8.0-53-generic/
/var/lib/dpkg/info/linux-tools-6.8.0-53-generic.list
/var/lib/dpkg/info/linux-tools-6.8.0-53-generic.md5sums
/var/lib/dpkg/info/linux-tools-6.8.0-53.list
/var/lib/dpkg/info/linux-tools-6.8.0-53.md5sums

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the kernel removal function in the Update Manager and trace how package cleanup is handled for a removed kernel. Use the listed 6.8.0-53 paths as the cleanup target, then verify that the directories and package metadata are absent after removal.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.