Registered Member
|
Hello everyone,
I noticed that KDE neon keeps taking more and more hard disc space over time. Using Filelight I noticed that there are remaining folders from old kernels in '/usr/lib/modules/X.X.X-XX-generic/', even though the respective old kernels were already removed using 'apt autoremove'. Clearly, I can manually delete the kernel packages using muon, still I would appreciate an automatic deleting when the corresponding kernel are removed. Is there an easy fix for this? Thanks in advance! |
Registered Member
|
This is probably an Ubuntu bug, since Neon does not touch anything kernel related. Both my Neon systems only have the modules folders for the two kernels present after using autoremove. The packages linux-modules-5.4.0-XX-generic are not being removed, or leaving the folders behind, and is not the expected behavior I believe.
claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
|
Registered Member
|
Alright and thanks for the fast response! So we can actually expect that this gets fixed by the ubuntu devs (sooner or later) or is it worth reporting a bug there?
|
Registered Member
|
Not sure. My kernels are being removed when i run autoremove, as expected. Worth reporting, though. I don't see any recent bug reports on this doing a very quick search
claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
|
Registered Member
|
Recently there was a similar thread.
Autoremove (sudo apt autoremove --purge) only removes kernels marked as automatically installed. And apparently, after an upgrade, the old kernels are considered as manuallý installed. Could this be considered as a bug? I don't know. Anyway, the solution is to erase old kernels except newer two, the kernel in use and the penultimate kernel. In future, the oldies will be automatically removed. |
Registered Member
|
after some info from my post earlier about kernels not being removed automatically i created this script which runs on boot up . So far no negative side effects .
#!/bin/bash apt-mark auto $(apt-mark showmanual | grep -E "^linux-([[:alpha:]]+-)+[[:digit:].]+-[^-]+(|-.+)$") apt-get -y autoremove --purge |
Registered Member
|
Thanks everyone for the answers. I just reported a but at ubuntu: https://bugs.launchpad.net/ubuntu/+bug/1907887
Hoping this gets fixed soon... |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]