3

I use this command

sudo apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual

and get this error Is there anybody can help me to resolve this problem? thanks.

Ubuntu 18.04 Error

Chai T. Rex
  • 5,126
  • 1
  • 24
  • 48
iXingo
  • 33
  • 1
  • 1
  • 5

2 Answers2

4

linux-image-generic should already install the associated linux-image-extra package, but the name has been changed to linux-modules-extra. Try this to upgrade to the latest kernel:

sudo apt update
sudo apt upgrade
sudo apt install --reinstall linux-image-generic

Then, reboot and try using the following command instead:

sudo apt install linux-modules-extra-$(uname -r) linux-image-extra-virtual 
mchid
  • 42,315
  • 7
  • 94
  • 147
Chai T. Rex
  • 5,126
  • 1
  • 24
  • 48
3

As @mchid said in the comments,

linux-image-extra-*

packages have been renamed

linux-modules-extra-*

tudor -Reinstate Monica-
  • 7,098
  • 7
  • 34
  • 63
  • 5
    Where is this kind of thing documented? – bennlich Mar 10 '19 at 23:14
  • @bennlich exactly my thoughts, how are we supposed to know this? What is the reason for renaming them, and can't they do some backward compatibility or something? – VishnuVS Jan 22 '21 at 08:25