Results 1 to 3 of 3

Thread: no automatic install of linux headers and modules upon upgrade

  1. #1
    Join Date
    May 2010
    Beans
    200

    no automatic install of linux headers and modules upon upgrade

    Hi,
    some time ago I screwed my ubuntu-20.04 probably by inadequate use of Ubuntu Cleaner. jermey31 was extremely helpful and with his aid I managed to install the lacking headers and modules.
    However, this does not automatically occur upon upgrade. So, I must always run through the following procedure:

    ls -l /usr/src/linux-headers-$(uname -r)
    sudo apt install linux-headers-$(uname -r)
    sudo apt install --reinstall linux-headers-$(uname -r)-generic linux-modules-extra-$(uname -r)-generic

    what do I need to do to have it automatically installed as is normally the case on upgrade?

    Thanks, D.E.

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,614
    Distro
    Ubuntu

    Re: no automatic install of linux headers and modules upon upgrade

    You need the generic headers meta-packages.
    But better to just have the linux-generic package installed.
    That package will install the linux-image-generic and linux-headers-generic packages.
    Which in turn will install the latest versions for both whenever updates comes for them.
    Code:
    sudo apt install linux-generic
    If using the hwe stacks it might be either
    Code:
    sudo apt install linux-generic-hwe-18.04
    For Ubuntu 18.04
    or
    Code:
    sudo apt install linux-generic-hwe-20.04
    for Ubuntu 20.04.

    (The linux-modules-extras are a dependency of the linux-image-generic meta-package so ti should e updated as well.)
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    May 2010
    Beans
    200

    Re: no automatic install of linux headers and modules upon upgrade

    Thanks a lot! I installed it and shall see when running the next upgrade. Things often seem very easy - provided one knows

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •