4

I have installed and uninstalled a couple of kernels(including some low latency ones) to test them out.

Now I have:

$ uname -r
4.8.0-39-generic

But now I get the following message whenever I try to install other packages:

The following package was automatically installed and is no longer required: thermald Use 'sudo apt autoremove' to remove it.

I have tried to check the date when this thermald was installed using this answer here

And the date it shows me is: thermald 2016-07-19 15:48:01.000000000 -0500

I have installed Ubuntu in Nov 2016. So this is not the date when thermald is installed. So is it safe to remove it using autoremove?

$ lsb_release -a 
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:    16.04
Codename:   xenial

I have used this tool to remove all the inactive kernels. ( Also tried 4.9.12 and 4.10 using this same tool)

I got the 4.8 kernel by doing this:

$ sudo apt-get update
$ apt-cache search linux-image
$ sudo apt-get install linux-headers-4.8.0-39-generic linux-image-4.8.0-39-generic linux-image-extra-4.8.0-39-generic

2 Answers2

3

thermald is not a vital package, but recommended by the linux-image-generic kernel meta-package.

You can get this information by running

apt show thermald

(shows general info about the package, note the output line "Priority: optional"), and

apt rdepends thermald

(shows a list of packages that directly depend on/recommend/suggest thermald).

Recommended packages are no necessary dependencies, but normally automatically installed like those, because although the recommending package can work without them, they add important functionality.


So you could remove thermald if you desire to do so, but I would recommend you to fix the dependency chain and properly install the meta-package which recommends thermald again.

Probably this can be done in your case by running

sudo apt install --reinstall linux-generic

This should not install any real packages, providing you still have them all, just meta-packages like linux-image-generic or so. After that, thermald should no longer be in the autoremove candidate list.


Edit:

As you say you are on 16.04 LTS and want the 4.8 HWE kernel instead of the 4.4. GA kernel, make sure you have the meta-package linux-generic-hwe-16.04 (and xserver-xorg-hwe-16.04) installed instead of the linux-generic I recommended above.

Byte Commander
  • 110,243
1

thermald produced A LOT of problems for me on notebook. Ubuntu had random and extremely annoying lags until I removed it.

I removed thermald and everything is working just great.