auto install/upgrade linux-modules-extra-$VERSION-raspi

Asked by Zigen


I have the latest Ubuntu installed on my Raspberry Pi 4. I need the package linux-modules-extra-$VERSION-raspi installed as I use VLAN interfaces. The problem that I am having is that every time the kernel gets updated, I no longer have (the newest) linux-modules-extra-$VERSION-raspi installed when it gets rebooted into the new kernel.

This is extremely painful, as to recover, I have to manually hook up Raspberry Pi 4 to a display/keyboard and login locally to manually bring up a network interface, install the newest linux-modules-extra-$VERSION-raspi that matches the newest kernel, and then reboot it.

The forum post ( also mentions the below:

"The 'extras' package dependency does not apply to the linux-raspi meta-packages like it does for the linux-generic packages.
For linux-raspi it is only a suggested package. I have no idea why, but you could probably ask the kernel team about it here:"

Can you guys please provide a way / guidance on how to get linux-modules-extra-$VERSION-raspi auto install/upgraded whenever a (new) kernel gets installed?

Thank you.

Question information

English Edit question
Ubuntu linux-raspi Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :


sudo apt install linux-modules-extra-raspi

this meta package should update what you need, possibly

Revision history for this message
Esme Gardner (esme02) said :

Can you help with this problem?

Provide an answer of your own, or ask Zigen for more information if necessary.

To post a message you must log in.