- Пакет: linux-headers-generic (5.19.0.1021.23~22.04.1 и другие) [ports]
- Original Maintainer (usually from Debian):
- Подобные пакеты:
- Generic Linux kernel headers
- Другие пакеты, относящиеся к linux-headers-generic
- Загрузка linux-headers-generic
- How To Install linux-headers-generic on Ubuntu 22.04
- What is linux-headers-generic
- Install linux-headers-generic Using apt-get
- Install linux-headers-generic Using apt
- Install linux-headers-generic Using aptitude
- How To Uninstall linux-headers-generic on Ubuntu 22.04
- Uninstall linux-headers-generic And Its Dependencies
- Remove linux-headers-generic Configurations and Data
- Remove linux-headers-generic configuration, data, and all of its dependencies
- References
- Summary
- How do I install kernel header files?
- Case of Obsolete kernel package
- Package: linux-headers-generic (5.15.0.1036.40~20.04.1 and others) [ports]
- Original Maintainer (usually from Debian):
- Similar packages:
- Generic Linux kernel headers
- Other Packages Related to linux-headers-generic
- Download linux-headers-generic
- Пакет: linux-headers-generic (5.4.0.153.150 и другие) [security]
- Original Maintainer (usually from Debian):
- Подобные пакеты:
- Generic Linux kernel headers
- Другие пакеты, относящиеся к linux-headers-generic
- Загрузка linux-headers-generic
Пакет: linux-headers-generic (5.19.0.1021.23~22.04.1 и другие) [ports]
Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly.
Original Maintainer (usually from Debian):
It should generally not be necessary for users to contact the original maintainer.
Подобные пакеты:
- linux-headers-generic-hwe-20.04-edge
- linux-headers-iot
- linux-headers-generic-hwe-22.04
- linux-headers-generic-hwe-22.04-edge
- linux-headers-generic-lpae
- linux-headers-generic-lpae-hwe-20.04
- linux-headers-generic-64k-hwe-20.04
- linux-headers-generic-64k-hwe-20.04-edge
- linux-headers-generic-lpae-hwe-20.04-edge
- linux-headers-generic-64k
- linux-headers-generic-64k-hwe-22.04
Generic Linux kernel headers
Другие пакеты, относящиеся к linux-headers-generic
- зависимости
- рекомендации
- предложения
- enhances
- dep: linux-headers-5.15.0-76-generic [не riscv64] Linux kernel headers for version 5.15.0 on 64 bit x86 SMP
- dep: linux-headers-5.19.0-1021-generic [riscv64] Linux kernel headers for version 5.19.0 on RISC-V SMP
Загрузка linux-headers-generic
Архитектура | Версия | Размер пакета | В установленном виде | Файлы |
---|---|---|---|---|
amd64 | 5.15.0.76.74 | 2,3 Кб | 20,0 Кб | [список файлов] |
arm64 | 5.15.0.76.74 | 2,3 Кб | 20,0 Кб | [список файлов] |
armhf | 5.15.0.76.74 | 2,3 Кб | 20,0 Кб | [список файлов] |
ppc64el | 5.15.0.76.74 | 2,3 Кб | 20,0 Кб | [список файлов] |
riscv64 | 5.19.0.1021.23~22.04.1 | 2,4 Кб | 11,0 Кб | [список файлов] |
s390x | 5.15.0.76.74 | 2,3 Кб | 20,0 Кб | [список файлов] |
This page is also available in the following languages:
Авторские права © 2023 Canonical Ltd.; См. условия лицензии. Ubuntu это торговый знак компании Canonical Ltd. Об этом сайте.
How To Install linux-headers-generic on Ubuntu 22.04
In this tutorial we learn how to install linux-headers-generic on Ubuntu 22.04.
What is linux-headers-generic
This package will always depend on the latest generic kernel headers available.
There are three ways to install linux-headers-generic on Ubuntu 22.04. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.
Install linux-headers-generic Using apt-get
Update apt database with apt-get using the following command.
After updating apt database, We can install linux-headers-generic using apt-get by running the following command:
sudo apt-get -y install linux-headers-generic
Install linux-headers-generic Using apt
Update apt database with apt using the following command.
After updating apt database, We can install linux-headers-generic using apt by running the following command:
sudo apt -y install linux-headers-generic
Install linux-headers-generic Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
After updating apt database, We can install linux-headers-generic using aptitude by running the following command:
sudo aptitude -y install linux-headers-generic
How To Uninstall linux-headers-generic on Ubuntu 22.04
To uninstall only the linux-headers-generic package we can use the following command:
sudo apt-get remove linux-headers-generic
Uninstall linux-headers-generic And Its Dependencies
To uninstall linux-headers-generic and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove linux-headers-generic
Remove linux-headers-generic Configurations and Data
To remove linux-headers-generic configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge linux-headers-generic
Remove linux-headers-generic configuration, data, and all of its dependencies
We can use the following command to remove linux-headers-generic configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge linux-headers-generic
References
Summary
In this tutorial we learn how to install linux-headers-generic package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.
How do I install kernel header files?
You should be able to install the kernel header files for the currently running kernel by running the following in a terminal:
sudo apt-get install linux-headers-$(uname -r)
In general, the kernel header packages are named linux-header-* where «*» indicates the version & variant (generic, server, etc.).
hey thanks but could you tell me what does generic, server, etc means i want to write (kernel driver)
This won’t install the headers for future updates automatically and you’ll have to re-run this command every time. Therefore, it’s recommended to install the metapackage instead, as described in another answer.
sudo apt-get install linux-headers-generic
if you are on a Desktop installation. The apt-get will solve the dependencies and install the correct version of kernel headers.
In Debian Wheezy I get the error message «Package linux-headers-generic is not available, but is referred to by another package. [. ] E: Package ‘linux-headers-generic’ has no installation candidate»
@IQAndreas the linux-headers-generic package is ubuntu specific. On Debian you should use sudo apt-get install linux-headers-$(uname -r)
I have linux-headers-generic installed on 18.04 but still don’t have the headers for the newest and current kernel version. Maybe it’s just a bug with this version, I’ve compiled kernel modules in earlier versions so I must’ve had the correct headers back then.
Case of Obsolete kernel package
This should cover another problem when: the currently running kernel is obsolete, meaning it’s not in the repository anymore neither its headers. So the best thing to do is to update the kernel to last version in the repository.
linux-generic is a meta package to keep current version of the kernel & its headers:
sudo apt-get update sudo apt-get install linux-generic
Note: Depending on your Ubuntu edition, See if you need linux-lowlatency (Ubuntu Studio), linux-signed-generic or linux-virtual .
Package: linux-headers-generic (5.15.0.1036.40~20.04.1 and others) [ports]
Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly.
Original Maintainer (usually from Debian):
It should generally not be necessary for users to contact the original maintainer.
Similar packages:
- linux-headers-generic-hwe-20.04-edge
- linux-headers-iot
- linux-headers-generic-hwe-22.04
- linux-headers-generic-hwe-22.04-edge
- linux-headers-generic-lpae
- linux-headers-generic-lpae-hwe-20.04
- linux-headers-generic-64k-hwe-20.04
- linux-headers-generic-64k-hwe-20.04-edge
- linux-headers-generic-lpae-hwe-20.04-edge
- linux-headers-generic-64k
- linux-headers-generic-64k-hwe-22.04
Generic Linux kernel headers
Other Packages Related to linux-headers-generic
- depends
- recommends
- suggests
- enhances
- dep: linux-headers-5.15.0-1036-generic [riscv64] Linux kernel headers for version 5.15.0 on RISC-V SMP
- dep: linux-headers-5.4.0-153-generic [not riscv64] Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
Download linux-headers-generic
Architecture | Version | Package Size | Installed Size | Files |
---|---|---|---|---|
amd64 | 5.4.0.153.150 | 2.4 kB | 19.0 kB | [list of files] |
arm64 | 5.4.0.153.150 | 2.4 kB | 19.0 kB | [list of files] |
armhf | 5.4.0.153.150 | 2.4 kB | 19.0 kB | [list of files] |
ppc64el | 5.4.0.153.150 | 2.4 kB | 19.0 kB | [list of files] |
riscv64 | 5.15.0.1036.40~20.04.1 | 2.4 kB | 11.0 kB | [list of files] |
s390x | 5.4.0.153.150 | 2.4 kB | 19.0 kB | [list of files] |
This page is also available in the following languages:
Content Copyright © 2023 Canonical Ltd.; See license terms. Ubuntu is a trademark of Canonical Ltd. Learn more about this site.
Пакет: linux-headers-generic (5.4.0.153.150 и другие) [security]
Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly.
Original Maintainer (usually from Debian):
It should generally not be necessary for users to contact the original maintainer.
Подобные пакеты:
- linux-headers-generic-hwe-20.04-edge
- linux-headers-iot
- linux-headers-generic-hwe-22.04
- linux-headers-generic-hwe-22.04-edge
- linux-headers-generic-lpae
- linux-headers-generic-lpae-hwe-20.04
- linux-headers-generic-64k-hwe-20.04
- linux-headers-generic-64k-hwe-20.04-edge
- linux-headers-generic-lpae-hwe-20.04-edge
- linux-headers-generic-64k
- linux-headers-generic-64k-hwe-22.04
Generic Linux kernel headers
Другие пакеты, относящиеся к linux-headers-generic
- зависимости
- рекомендации
- предложения
- enhances
- dep: linux-headers-5.4.0-153-generic [amd64] Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
- dep: linux-headers-5.4.0-24-generic [riscv64] Linux kernel headers for version 5.4.0 on RISC-V SMP
- dep: linux-headers-5.4.0-26-generic [не amd64, riscv64] Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
Загрузка linux-headers-generic
Архитектура | Версия | Размер пакета | В установленном виде | Файлы |
---|---|---|---|---|
amd64 | 5.4.0.153.150 | 2,4 Кб | 19,0 Кб | [список файлов] |
arm64 | 5.4.0.26.32 | 2,6 Кб | 17,0 Кб | [список файлов] |
armhf | 5.4.0.26.32 | 2,6 Кб | 17,0 Кб | [список файлов] |
ppc64el | 5.4.0.26.32 | 2,6 Кб | 17,0 Кб | [список файлов] |
riscv64 | 5.4.0.24.30 | 2,1 Кб | 9,0 Кб | [список файлов] |
s390x | 5.4.0.26.32 | 2,6 Кб | 17,0 Кб | [список файлов] |
This page is also available in the following languages:
Авторские права © 2023 Canonical Ltd.; См. условия лицензии. Ubuntu это торговый знак компании Canonical Ltd. Об этом сайте.