- Как установить заголовочные файлы ядра в Linux
- Установка заголовочных файлов ядра в Debian, Ubuntu или Linux Mint
- Установка заголовочных файлов ядра в Fedora, CentOS или RHEL
- Arch Linux
- linux-headers 5.14.10.arch1-1
- Package Actions
- Versions Elsewhere
- Dependencies (15)
- Required By (22)
- Package Contents
- Links to so-names
- Arch Linux
- #1 2015-10-27 22:02:56
- Auto install linux-headers
- #2 2015-10-27 22:55:50
- Re: Auto install linux-headers
- #3 2015-10-27 23:00:59
- Re: Auto install linux-headers
- #4 2015-10-28 19:26:10
- Re: Auto install linux-headers
- #5 2015-10-30 23:53:38
- Re: Auto install linux-headers
- #6 2015-10-30 23:58:17
- Re: Auto install linux-headers
- Arch Linux
- #1 2019-07-24 13:41:21
- Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #2 2019-07-24 13:43:33
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #3 2019-07-24 13:47:37
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #4 2019-07-24 14:22:44
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #5 2019-07-24 14:29:08
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #6 2019-07-24 14:48:03
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #7 2019-07-24 15:16:40
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #8 2019-07-24 15:20:22
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #9 2019-07-24 15:28:00
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #10 2019-07-24 15:29:50
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #11 2019-07-24 15:29:56
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #12 2019-07-24 15:32:23
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #13 2019-07-24 17:07:42
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #14 2019-07-24 17:19:56
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #15 2019-07-24 17:32:26
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #16 2019-07-24 17:36:39
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #17 2019-07-24 17:45:45
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #18 2019-07-24 19:23:21
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #19 2019-07-24 19:28:03
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #20 2019-07-24 20:02:06
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #21 2019-07-24 20:04:01
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #22 2019-07-25 03:21:15
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #23 2019-07-25 03:55:26
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #24 2019-07-25 11:07:44
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
- #25 2019-07-25 11:22:35
- Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Как установить заголовочные файлы ядра в Linux
Когда вы компилируете драйвер устройства как модуль ядра, вам необходимы установленные заголовочные файлы ядра. Также они требуются, если вы собираете пользовательское приложение, которое взаимодействует напрямую с ядром. При установке заголовочных файлов ядра, необходимо убедиться, что их версия совпадает с версией ядра установленного в системе.
Если версия вашего ядра не менялась после установки дистрибутива, или вы обновляли его с использованием системного менеджера пакетов (то есть apt-get, aptitude или yum) из системных репозиториев, то заголовочные файлы вы также можете установить с помощью пакетного менеджера. Однако если вы скачивали исходный код ядра и компилировали его самостоятельно, то заголовочные файлы необходимо устанавливать с помощью команды make.
Здесь мы предполагаем, что ваше ядро установлено из основного системного репозитория вашего дистрибутива, и вы хотите установить соответствующие заголовочные файлы ядра.
Установка заголовочных файлов ядра в Debian, Ubuntu или Linux Mint
Если вы не компилировали ядро вручную, то можете установить соответствующие заголовочные файлы ядра с помощью команды apt-get.
Сначала проверьте, не установлены ли уже требуемые заголовочные файлы с помощью команды:
Теперь установите заголовочные файлы, как показано ниже.
Проверьте, что установка прошла успешно.
По умолчанию в Debian, Ubuntu или Linux Mint заголовочные файлы находятся в /usr/src.
Установка заголовочных файлов ядра в Fedora, CentOS или RHEL
Если вы не обновляли ядро вручную, то можете установить соответствующие заголовочные файлы ядра с помощью команды yum.
Сначала проверьте, не установлены ли уже требуемые заголовочные файлы. По умолчанию заголовочные файлы ядра расположены в /usr/src/kernels/.
Если подходящих заголовочных файлов не установлено, вы можете установить их с помощью команды yum. Она автоматически найдет подходящий пакет.
Если заголовочные файлы ядра, установленные с помощью вышеприведенной команды, не соответствуют установленному в системе ядре, значит оно устарело. В этом случае обновите ядро системы до последней версии с помощью приведенной ниже команды. После обновления необходимо перезагрузить систему.
Теперь проверьте, что установлены заголовочные файлы соответствующей версии с помощью команды:
Источник
Arch Linux
linux-headers 5.14.10.arch1-1
Package Actions
- Source Files / View Changes
- Bug Reports / Add New Bug
- Search Wiki / Manual Pages
- Security Issues
- Flagged out-of-date on 2021-10-10
- Version 5.14.11.arch1-1 in testing
- Download From Mirror
Versions Elsewhere
Architecture: | x86_64 |
---|---|
Repository: | Core |
Base Package: | linux |
Description: | Headers and scripts for building modules for the Linux kernel |
Upstream URL: | https://github.com/archlinux/linux/commits/v5.14.10-arch1 |
License(s): | GPL2 |
Maintainers: | Tobias Powalowski Jan Alexander Steffens David Runge |
Package Size: | 23.8 MB |
Installed Size: | 131.2 MB |
Last Packager: | Jan Alexander Steffens |
Build Date: | 2021-10-07 20:00 UTC |
Signed By: | Jan Alexander Steffens |
Signature Date: | 2021-10-07 20:33 UTC |
Last Updated: | 2021-10-10 00:01 UTC |
Dependencies (15)
- pahole
- bc (make)
- cpio (make)
- git (make)
- graphviz (make)
- imagemagick (make)
- kmod (make)
- libelf (make)
- pahole (make)
- perl (make)
- python-sphinx (make)
- python-sphinx_rtd_theme (make)
- tar (make)
- xmlto (make)
- xz (make)
Required By (22)
- bcc (optional)
- dkms (optional)
- acpi_call (make)
- audit (make)
- bbswitch (make)
- bbswitch-dkms (make)
- bpftrace (make)
- broadcom-wl (make)
- deepin-anything-arch (make)
- netfilter-fullconenat (make)
- nvidia (make)
- openssh (make)
- pax-utils (make)
- python-audit (make)
- r8168 (make)
- tp_smapi (make)
- vhba-module (make)
- vhba-module-dkms (make)
- virtualbox (make)
- virtualbox-host-modules-arch (make)
- virtualbox-sdk (make)
- kmod (check)
Package Contents
Links to so-names
The Arch Linux name and logo are recognized trademarks. Some rights reserved.
The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.
Источник
Arch Linux
You are not logged in.
#1 2015-10-27 22:02:56
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?
#2 2015-10-27 22:55:50
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
#3 2015-10-27 23:00:59
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
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)
Arch linux X86_64
#4 2015-10-28 19:26:10
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.
#5 2015-10-30 23:53:38
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?
#6 2015-10-30 23:58:17
Re: Auto install linux-headers
Any suggestions how to automate this process?
Источник
Arch Linux
You are not logged in.
#1 2019-07-24 13:41:21
Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
I’m trying to install wifi driver in my RTL8723DE, hp laptop. Wifi is not detecting. So i downloaded https://github.com/smlinux/rtl8723de.git
I tried to install with dkms.
it was not successful since i had no headers. But saying headers not installed. But when i try to install header, it ends up with this error.
Last edited by benjamin007 (2019-07-24 17:32:33)
#2 2019-07-24 13:43:33
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Hi, you should post what is in «/var/lib/dkms/rtl8723de-5.1.1.8_21285.20171026_COEX20170111/1414/build/make.log» it may be usefull
#3 2019-07-24 13:47:37
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Welcome to the arch linux forums benjamin007. Please use code tags for commands and their outputs.
Your title states you can not install linux-headers but
shows the package is installed and the issue appears to be that rtl8723de is failing to build for linux 5.2.2.arch1-1.
Did you follow the suggestion?
Last edited by loqs (2019-07-24 13:53:34)
#4 2019-07-24 14:22:44
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
#5 2019-07-24 14:29:08
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Last edited by benjamin007 (2019-07-24 17:18:39)
#6 2019-07-24 14:48:03
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Did you read the link I provided to the AUR wiki page?
#7 2019-07-24 15:16:40
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Now the driver is installed?
#8 2019-07-24 15:20:22
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Was the package installation successful? Does `modprobe rtl8723de` succeed?
Edit:
As the system is already booted autoloading of modules for detected hardware will not occur.
Last edited by loqs (2019-07-24 15:28:27)
#9 2019-07-24 15:28:00
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
I think its complete. If yes, can i reboot and check wireless is working?
Last edited by benjamin007 (2019-07-24 15:32:03)
#10 2019-07-24 15:29:50
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Yes it completed without issue. Please use code tags not quote tags for commands and their outputs.
#11 2019-07-24 15:29:56
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Please edit your posts to use code tags as requested, not quote tags.
«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman
#12 2019-07-24 15:32:23
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
#13 2019-07-24 17:07:42
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
I reboot the pc. Wireless network isn’t still showing. And Still I cannot install Linux headers. Showing previous error itself.
#14 2019-07-24 17:19:56
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
I commented on your assertion you could not install linux headers in post #3.
What have you done to configure wireless networking? What is not showing?
Edit:
What is the driver status?
Last edited by loqs (2019-07-24 17:28:31)
#15 2019-07-24 17:32:26
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
I had this same issue (wireless networks not showing) in Manjaro. But I installed this driver https://github.com/smlinux/rtl8723de.git
Same issue is having with Arch now. I tried to install that driver itself with dkms. But, dkms needs linux-headers. And, installing linux-headers throwing this error.
Last edited by benjamin007 (2019-07-24 17:37:52)
#16 2019-07-24 17:36:39
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
The package linux-headers are already installed on your system. There is no need to keep reinstalling them. Period.
But if and when you do install packages, do not use `pacman -Sy $pkg`, that will resulting a partial upgrade which will result in total breakage.
The module rebuild for that aur-packaged module did indeed fail, but that’s not the linux-headers package. The source of the error is clear in the make.log: you do not have bc installed. You did not — apparently — install the dependencies of the module you were trying to build. This also highlights that you must not have installed it via pacman, but just built manually. You should not do this. So going back to the start of this thread, have you considered the AUR package that was recommended?
Last edited by Trilby (2019-07-24 17:38:26)
«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman
#17 2019-07-24 17:45:45
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
My mistake https://aur.archlinux.org/packages/rtlwifi_new-dkms/ does not include the 8723de that needs the extended branch used by https://aur.archlinux.org/packages/rtlw … nded-dkms/
Edit:
Please remove rtlwifi_new-dkms before installing rtlwifi_new-extended-dkms
Last edited by loqs (2019-07-24 17:47:01)
#18 2019-07-24 19:23:21
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
I removed every modules previously installed from dkms module. And the rtlwifi_new-extended-dkms also installed,still i could not see my wireless networks(wifi)
#19 2019-07-24 19:28:03
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Is the module loaded (`lsmod | grep rtl8723de`)?
If not, load it (`modprobe rtl8723de`).
«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman
#20 2019-07-24 20:02:06
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
FINALLY, WiFi networks are showing. That extended version does the work, Thank You. BUT, there is a problem,when i do wifi-menu , it is scanning and showing network. But i cannot connect to any network. Its showing an error instead.
#21 2019-07-24 20:04:01
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Are you using any network management services other than netctl on that system?
#22 2019-07-25 03:21:15
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Yes, I’m also using IW , IP link, nm-applet, Wireless_tools and Iwd.
Last edited by benjamin007 (2019-07-25 03:21:44)
#23 2019-07-25 03:55:26
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
and remove all the existing profiles from «/etc/netctl/». By profiles, I mean all the saved networks(if any)
and reboot the system.
and remember, don’t start nm-applet. «wifi-menu», «dialog» and «wpa_supplicant» are sufficient to get you online.
Last edited by gaurav712 (2019-07-25 03:57:24)
#24 2019-07-25 11:07:44
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
Multiple network management services compete for control of the interface leading to the issue you encountered. Pick the one you wish to use and stop plus disable the others.
#25 2019-07-25 11:22:35
Re: Cannot install linux-headers in kernel 5.2.2-arch1-1-ARCH
If someone is having wireless network issue in above specified card. Do follow their thread. This can really solve the issue. Follow what others are answered. We don’t have to install headers for installing the module from aur. All links are answered. Thanks you everyone!
Источник