How can I resolve this problem : Unable to locate package linux-image-extra-4.15.0-29-generic

15,392

Solution 1

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 

Solution 2

As @mchid said in the comments,

linux-image-extra-*

packages have been renamed

linux-modules-extra-*

Share:
15,392

Related videos on Youtube

iXingo
Author by

iXingo

Updated on September 18, 2022

Comments

  • iXingo
    iXingo over 1 year

    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

  • bennlich
    bennlich about 5 years
    Where is this kind of thing documented?
  • VishnuVS
    VishnuVS over 3 years
    @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?