You are not logged in.

#1 2015-10-27 22:02:56

Abadonna
Member
Registered: 2015-10-03
Posts: 12

Auto install linux-headers

I am a newbie in the Arch, so please be gentle with me.

Question: Why my Arch does not automatically install linux-headers when it upgrades kernel?
This is the second time my DKMS is failing while trying to recompile modules due to lack of headers...
Am I missing something? Configuration of something is screwed?

How to make sure that pacman -Syu will download linux-headers the same time it updates kernel?

Offline

#2 2015-10-27 22:55:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Auto install linux-headers

You are using two phrases interchangeably, but they are very different things:

1) Why didn't pacman install linux-headers for you?  Because it will never install anything that is not either a dependency of something you told it to install or is itself something you told it to install.  Have you explicity installed linux-headers?  Does you DKMS package depend on linux-headers?  It should, which DKMS package is this?

2) Why didn't pacman upgrade linux-headers: it will if the linux-headers package is intalled.

Linux and linux-headers in the [core] repo should always be the same version.  There have been a few cases where one of them made it to the repo before the other - but it is always quickly rectified.  It is possible that if your mirror grabbed the database at the wrong moment and then did not update for quite a while that your mirror could be hosting incongruent versions.  But we'd need specifics on what exactly happened to address that possibility.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-10-27 23:00:59

American_Jesus
Member
From: Lisbon/Portugal
Registered: 2011-07-20
Posts: 37

Re: Auto install linux-headers

If the package goes to core at same time as the linux package, yes.
If not you can ignore and not upgrade the linux package and wait till the linux-headers gets updated

pacman -Syu --ignore linux

https://wiki.archlinux.org/index.php/Pa … g_upgraded

Sometimes can happen if the mirror that you are using are not fully sync with Archlinux
You can see the mirror status here https://www.archlinux.org/mirrors/status/

Last edited by American_Jesus (2015-10-27 23:09:59)


Archlinux X86_64

Offline

#4 2015-10-28 19:26:10

Abadonna
Member
Registered: 2015-10-03
Posts: 12

Re: Auto install linux-headers

@Trilby,
1) dkms status
nvidia, 355.11, 4.2.2-1-ARCH, x86_64: installed                                                                                                                                                               
nvidia, 355.11, 4.2.3-1-ARCH, x86_64: installed
vboxhost, 5.0.8, 4.2.3-1-ARCH, x86_64: installed

It has failed on nvidia. Also, DKMS did not compiled module for vboxhos by itself. I had to push it with dkms autoinstall. Is this expected behaviour?

2) I have installed linux-headers previously (as you can see - I did that while installing nvidia), and it did not auto-update it last time.

Also, doesn't DKMS remove obsolete modules auto-magically when I upgrade the kernel?

I am sorry if the questions are really newbie, but I came from Sabayon land here and it is a bit terra incognita for me.

Offline

#5 2015-10-30 23:53:38

Abadonna
Member
Registered: 2015-10-03
Posts: 12

Re: Auto install linux-headers

And today the same deal...
I have upgraded linux 4.2.5-1 and linux-headers 4.2.5-1 (interesting - this time both files were pulled automatically)

Restart and... no gui. :-( DKSM did not run (or failed for some reason) and no nvidia modules. I had to dkms autoinstall manually to fix it.

Any suggestions how to automate this process?

Offline

#6 2015-10-30 23:58:17

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Auto install linux-headers

Abadonna wrote:

Any suggestions how to automate this process?

# systemctl enable dkms

https://wiki.archlinux.org/index.php/Dy … stallation


Jin, Jîyan, Azadî

Offline

#7 2015-10-30 23:59:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Auto install linux-headers


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2015-10-31 00:16:23

Abadonna
Member
Registered: 2015-10-03
Posts: 12

Re: Auto install linux-headers

Lovely. Thanks!

Offline

Board footer

Powered by FluxBB