[SOLVED] Why is version of linux-kernel-generic lower than actual kernel used?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
gwi
Level 2
Level 2
Posts: 97
Joined: Mon Jun 04, 2012 4:20 pm

[SOLVED] Why is version of linux-kernel-generic lower than actual kernel used?

Post by gwi »

Currently I am running Linux Mint 18.3 Cinnamon. Kernel version is 4.13.0-45-generic (according to uname -r).

Synaptic showed there were a lot of kernels installed, probably caused by successive updates. I uninstalled three versions of linux-headers-(version), linux-headers-(version)-generic, linux-image-(version)-generic and linux-image-extra-(version)-generic. This freed almost 800 MB of disk space. What is left now, are:

Code: Select all

linux-headers-4.10.0-38
linux-headers-4.13.0-45
linux-headers-4.10.0-38-generic
linux-headers-4.13.0-45-generic
linux-image-4.10.0-38-generic
linux-image-4.13.0-45-generic
linux-image-extra-4.10.0-38-generic
linux-image-extra-4.13.0-45-generic
Since I am running kernel version 4.13.0-45, I thought I could remove the packages with 4.10.0-38 in their name. But that results in a warning that linux-kernel-generic will be removed as well. The package linux-kernel-generic has an installed version number of 4.10.0-38.

What is the function of linux-kernel-generic, and why doesn't it have version 4.13.0-45?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Regards,

George

Linux Mint 21.2 Victoria Cinnamon 64-bit, Asus Vanguard B85, Intel Core i7 4770S
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Why is version of linux-kernel-generic lower than actual kernel used?

Post by rene »

Try apt show linux-kernel-generic; this will tell you that the linux-kernel-generic package is merely a meta-package that depends on "the release kernel", which is to say, the kernel the OS originally came with; 4.10 in the case of Ubuntu 16.04/Mint 18.x. It makes sense to keep said kernel around as a fallback but there's no technical problem with removing it. Do be sure to not also remove linux-firmware, also a dependency of linux-kernel-generic.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Why is version of linux-kernel-generic lower than actual kernel used?

Post by Flemur »

gwi wrote: Sat Jun 16, 2018 2:39 pm

Code: Select all

linux-image-extra-4.10.0-38-generic
linux-image-extra-4.13.0-45-generic
Since I am running kernel version 4.13.0-45, I thought I could remove the packages with 4.10.0-38 in their name. But that results in a warning that linux-kernel-generic will be removed as well. The package linux-kernel-generic has an installed version number of 4.10.0-38.
What is the function of linux-kernel-generic, and why doesn't it have version 4.13.0-45?
I thought I was going to show how I had linux-kernel-generic with later kernels...

Code: Select all

$ apt-rdepends linux-kernel-generic
...
linux-kernel-generic
  Depends: linux-firmware
  Depends: linux-headers-4.10.0-38
  Depends: linux-headers-4.10.0-38-generic
  Depends: linux-image-4.10.0-38-generic
  Depends: linux-image-extra-4.10.0-38-generic
..although I don't have those kernels installed (linux-firmware is installed), and then it turns out linux-kernel-generic is not installed.

So that matches what rene said. I guess.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
gwi
Level 2
Level 2
Posts: 97
Joined: Mon Jun 04, 2012 4:20 pm

Re: Why is version of linux-kernel-generic lower than actual kernel used?

Post by gwi »

rene wrote: Sat Jun 16, 2018 2:53 pm
Flemur wrote: Sat Jun 16, 2018 3:29 pm
Thank you both for explaining.
Regards,

George

Linux Mint 21.2 Victoria Cinnamon 64-bit, Asus Vanguard B85, Intel Core i7 4770S
Locked

Return to “Software & Applications”