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

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
gwi
Level 2
Level 2
Posts: 77
Joined: Mon Jun 04, 2012 4:20 pm

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

Post by gwi » Sat Jun 16, 2018 2:39 pm

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 gwi on Sun Jun 17, 2018 4:08 am, edited 1 time in total.
Regards,

George

Linux Mint 19 Tara Cinnamon 64-bit, Asus Vanguard B85, Intel Core i7 4770S

rene
Level 8
Level 8
Posts: 2226
Joined: Sun Mar 27, 2016 6:58 pm

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

Post by rene » Sat Jun 16, 2018 2:53 pm

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 16
Level 16
Posts: 6187
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 » Sat Jun 16, 2018 3:29 pm

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?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

gwi
Level 2
Level 2
Posts: 77
Joined: Mon Jun 04, 2012 4:20 pm

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

Post by gwi » Sun Jun 17, 2018 4:08 am

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 19 Tara Cinnamon 64-bit, Asus Vanguard B85, Intel Core i7 4770S

Post Reply

Return to “Software & Applications”