[00:04] <xu-irc92w> hello need help  Ubuntu Jammy Jellyfish (development branch) this is the os i run
[00:04] <xu-irc92w> i want to clean the old kernels, 5.11
[00:04] <xu-irc92w> uname -r says 5.13
[00:09] <Bashing-om> xu-irc92w: Show in a pastebin ' dpkg -l | grep linux-image- ' . see what there is to work.
[00:09] <xu-irc92w> https://paste.ubuntu.com/p/MzxMnjVQPS/
[00:13] <xu-irc92w> this is what grep 5.11 said
[00:13] <xu-irc92w> Uploaded file: https://uploads.kiwiirc.com/files/a6def0406fa828b65ea937b1a8ba5d14/pasted.txt
[00:13] <Bashing-om> Well - you only have 2 kernels installed --- the "rc" is (R)emoved but (C)onfig files remian. and I have no idea of where "linux-image-unsigned-5.13.0-051300-generic"came from. That might takes some effort to remove.
[00:14] <xu-irc92w> well i install 5.13 from kernel.ubuntu
[00:14] <xu-irc92w> cuz one app is asking it
[00:14] <Bashing-om> !info linix-image-generic
[00:14] <Bashing-om> !info linux-image-generic
[00:14] <xu-irc92w> then i did update-manager -d
[00:16] <xu-irc92w> now i have 2 images and modules 5.11 left which i want to clean
[00:21] <xu-irc92w> Uploaded file: https://uploads.kiwiirc.com/files/3559d59a4bc465f4e47cf818d7813330/pasted.txt
[00:22] <Bashing-om> xu-irc92w: You DO want to keep the 2 active kernels. the "ri" indicatesd that the 5.13.0-051300 is set for removal; but still installed.
[00:23] <xu-irc92w> ok what should i do
[00:26] <Bashing-om> xu-irc92w: Let's try and remove the other cruft ' dpkg -l | awk '/^rc/{print $2}' | xargs sudo dpkg -P '.
[00:30] <tomreyn> do you have more details on "cuz one app is asking [for kernel 5.13]"?
[00:31] <xu-irc92w> vmware needs to build modules
[00:31] <xu-irc92w> after did that command, i see a >   
[00:31] <xu-irc92w> hanging
[00:32] <xu-irc92w> nvm cleaned some config files
[00:34] <xu-irc92w> it seems its gone, dpkg -l | grep 5.11 returns no packages named linux* any more
[00:35] <xu-irc92w> am i good now
[00:36] <xu-irc92w> very much thank you
[00:37] <Bashing-om> xu-irc92w: Sepends on what you want to do with that strange partially installed "linux-image-unsigned-5.13.0-051300-generic" kernel.
[00:37] <Bashing-om> Depends*
[00:52] <xu-irc92w> do i need to uninstall that also
[00:53] <xu-irc92w> vmware is started with no error
[01:01] <Bashing-om> xu-irc92w: I can not tell you what to do with your system . but as is the package manager is not in a happy state - either complete the 5.13.0-051300-generic install or remove it, is my recomendation
[01:03] <xu-irc92w> Uploaded file: https://uploads.kiwiirc.com/files/3ddb0c56cb4c13d425bc61a11883d31f/pasted.txt
[01:03] <xu-irc92w> this
[01:03] <xu-irc92w> i already have 4
[01:06] <Bashing-om> xu-irc92w: Well - as you are booting 22.04 - then linux-image-generic-hwe-20.04 is no longer needed.
[01:07] <xu-irc92w> ok, how to deinstall
[01:12] <xu-irc92w> Uploaded file: https://uploads.kiwiirc.com/files/02ea288aba0b3cd9918c9c93916cfce5/pasted.txt
[01:12] <xu-irc92w> this
[01:13] <Bashing-om> xu-irc92w: I am at an impass here to *KNOW* which of the 5.13.0.19.30 kernels you may be booting, Not real sure of a great way to proceed. Maybe others here have better insight ? IF you are booting the HWE kernel and we try and mess with that one we will be in for a world of hurt.
 Linux version 5.13.0-051300-generic (kernel@kathleen) (gcc (Ubuntu 10.3.0-4ubuntu1) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.36.50.20210618) #202106272333 SMP Sun Jun 27 23:36:43 UTC 2021
[01:22] <tomreyn> ^ from #ubuntu, suggests that linux-image-unsigned-5.13.0-051300-generic is the kernel that's running
[01:22] <xu-irc92w> oops i accidentally remove the unsigned one
[01:24] <xu-irc92w> i hope i can still come back O:
[01:24] <tomreyn> https://packages.ubuntu.com/jammy/linux-image-generic and the linux-image-5.13.0-19-generic is the only packages you should have
[01:24] <tomreyn> oh well
[02:20] <xu-irc60w> back
[02:33] <Bashing-om> xu-irc60w: \o/ xu-irc92w ?
[02:41] <xu-irc60w> yeh dual boot machine cant see linux..
[02:43] <xu-irc60w>  dpkg-query -W --showformat='${Installed-Size} ${Package} ${Status}\n'|grep -v deinstall|sort -n|awk '{print $1" "$2}'
[02:44] <xu-irc60w> can this list All packages installed
[02:45] <Bashing-om> xu-irc60w: Sorry ^ above my skill level with dpkg to know.