linux-modules-extra

Duncan Brown ubuntu at duncb.co.uk
Mon Mar 15 11:21:42 UTC 2021


On 14/03/2021 19:59, Keith wrote:
> On 3/14/21 12:55 PM, Duncan Brown wrote:
>> On 14/03/2021 16:00, Robbi Nespu wrote:
>>> On 3/14/21 11:19 PM, Duncan Brown wrote:
>>>> Hello All
>>>>
>>>> Any ideas why since the update to the 5.8 kernel on 20.04.2 LTS I've
>>>> had to manually install linux-modules-extra each time?
>>>>
>>>> Each update (5.8.0-42-generic, 5.8.0-43-generic and now
>>>> 5.8.0-44-generic I've rebooted to no network adapter, and then have
>>>> to drop back a kernel version and manually apt install
>>>> linux-modules-extra-5.8.0-XX-generic
>>>>
>>>> thanks
>>>
>>> Maybe you are missing linux-generic* package?
>>> https://askubuntu.com/questions/1265137/avoid-missing-kernel-linux-modules-extra-xx-generic-when-updating-kernel 
>>>
>>>
>>>
>> Looks like I was missing the linux-generic-hwe-20.04 meta package as
>> mentioned in that link. The update to 5.8 came through a regular apt
>> upgrade so not sure why the meta package wasnt upgraded along with it.
>>
>> Either way, thanks both, that should fix it by the look of things
>>
>>
> I think you'll still need to check if the linux packages are identified
> as auto or manually installed in order for the autoremove process to
> work correctly. You can use "apt-mark" for that.
>
> $ apt-mark showmanual |grep ^linux
> linux-generic-hwe-20.04
> linux-libc-dev
>
> $ apt-mark showauto |grep ^linux
> inux-base
> linux-firmware
> linux-headers-5.8.0-43-generic
> linux-headers-5.8.0-44-generic
> linux-headers-generic-hwe-20.04
> linux-hwe-5.8-headers-5.8.0-43
> linux-hwe-5.8-headers-5.8.0-44
> linux-image-5.8.0-43-generic
> linux-image-5.8.0-44-generic
> linux-image-generic-hwe-20.04
> linux-modules-5.8.0-43-generic
> linux-modules-5.8.0-44-generic
> linux-modules-extra-5.8.0-43-generic
> linux-modules-extra-5.8.0-44-generic
> linux-sound-base
>
> Only linux-generic-hwe-20.04 should be manually installed. Everything
> else (headers, image, modules, firmware) should be set to auto
> installed. That way when upon installing an updated kernel, apt will
> update /etc/apt/apt.conf.d/01autoremove-kernels to keep last two kernels
> and let older ones be available to autoremove. Apt won't autoremove any
> old kernel images that have been manually installed.
>
> You can use apt-mark to change the installation status of a package.
>
> $ sudo apt-mark auto|manual <package>
>
> -- 
> Keith
>
Thanks for that, I had no idea that was how it worked

All sorted now

Duncan





More information about the ubuntu-users mailing list