- Пакет: linux-headers-generic (5.15.0.1007.7 и другие) [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
- Пакет: linux-headers-generic (5.19.0.1004.4 и другие) [ports]
- Original Maintainer (usually from Debian):
- Подобные пакеты:
- Generic Linux kernel headers
- Другие пакеты, относящиеся к linux-headers-generic
- Загрузка linux-headers-generic
- Why are there so many «linux-» kernel packages on my machine, and what do they all do?
- 2 Answers 2
- linux-image-generic
- linux-headers-generic
- -generic-pae
- linux-image-extra-*
- Why multiple linux packages with the different version numbers?
- error when running sudo apt-get upgrade (linux-headers-generic related)
- 2 Answers 2
Пакет: linux-headers-generic (5.15.0.1007.7 и другие) [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-1007-generic [riscv64] Linux kernel headers for version 5.15.0 on RISC-V SMP
- dep: linux-headers-5.15.0-25-generic [не amd64, riscv64] Linux kernel headers for version 5.15.0 on 64 bit x86 SMP
- dep: linux-headers-5.15.0-76-generic [amd64] Linux kernel headers for version 5.15.0 on 64 bit x86 SMP
Загрузка linux-headers-generic
Архитектура | Версия | Размер пакета | В установленном виде | Файлы |
---|---|---|---|---|
amd64 | 5.15.0.76.74 | 2,3 Кб | 20,0 Кб | [список файлов] |
arm64 | 5.15.0.25.27 | 2,4 Кб | 19,0 Кб | [список файлов] |
armhf | 5.15.0.25.27 | 2,4 Кб | 19,0 Кб | [список файлов] |
ppc64el | 5.15.0.25.27 | 2,4 Кб | 19,0 Кб | [список файлов] |
riscv64 | 5.15.0.1007.7 | 2,3 Кб | 10,0 Кб | [список файлов] |
s390x | 5.15.0.25.27 | 2,4 Кб | 19,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.
Пакет: linux-headers-generic (5.19.0.1004.4 и другие) [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.19.0-1004-generic [riscv64] Linux kernel headers for version 5.19.0 on RISC-V SMP
- dep: linux-headers-5.19.0-21-generic [не amd64, riscv64] Linux kernel headers for version 5.19.0 on 64 bit x86 SMP
- dep: linux-headers-5.19.0-46-generic [amd64] Linux kernel headers for version 5.19.0 on 64 bit x86 SMP
Загрузка linux-headers-generic
Архитектура | Версия | Размер пакета | В установленном виде | Файлы |
---|---|---|---|---|
amd64 | 5.19.0.46.42 | 2,3 Кб | 21,0 Кб | [список файлов] |
arm64 | 5.19.0.21.21 | 2,2 Кб | 20,0 Кб | [список файлов] |
armhf | 5.19.0.21.21 | 2,2 Кб | 20,0 Кб | [список файлов] |
ppc64el | 5.19.0.21.21 | 2,2 Кб | 20,0 Кб | [список файлов] |
riscv64 | 5.19.0.1004.4 | 2,3 Кб | 11,0 Кб | [список файлов] |
s390x | 5.19.0.21.21 | 2,2 Кб | 20,0 Кб | [список файлов] |
This page is also available in the following languages:
Авторские права © 2023 Canonical Ltd.; См. условия лицензии. Ubuntu это торговый знак компании Canonical Ltd. Об этом сайте.
Why are there so many «linux-» kernel packages on my machine, and what do they all do?
My question is, why are there so many different kernel packages, often for the same version number (e.g., 3.5.0-24), and what are the differences between them?
Edit to deduplicate: This question is not asking about the differences between generic, server, and virtual kernel packages; instead, it is asking about what all of those packages (as well as the ones in the list) are.
This question and askubuntu.com/questions/175495 are quite (obviously) different. As one can also see from the quite different answers. It’s a valid question in its own right. Please de-duplicate.
2 Answers 2
A kernel image package is related to the kernel image and modules which are loaded when your OS is booted. A header package provide files that are necessary to build out-of-tree kernel modules and/ or some other programs from source.
linux-image-generic
Usually you install the linux-image-generic package. That is a meta-package that does not ship any files itself. Instead, it depends on the latest kernel version provided by Ubuntu, for example linux-image-3.8.0-19-generic . This package is needed to receive kernel updates.
linux-headers-generic
A similar story holds for the linux-headers-generic package. You need to install this package if you use external kernel modules such as proprietary video drivers. The linux-generic package is a meta-package that ensures that both the linux-headers-generic and linux-image-generic packages are installed.
-generic-pae
linux-image-extra-*
This package was introduced with Ubuntu 12.10 and provides additional kernel modules (drivers). See What is the linux-image-extra package for and do I need it?.
Why multiple linux packages with the different version numbers?
The kernel is a critical piece of your system. Newer kernel versions may introduce a bug that make you unable to start your system successfully. With multiple kernels installed simultaneously, you can change the kernel version in the boot menu.
error when running sudo apt-get upgrade (linux-headers-generic related)
to try to fix this, i manually downloaded the following packages from the ubuntu kernel team site and installed succesfully: linux-headers-5.6.10-050610_5.6.10-050610.202005052301_all.deb
linux-image-unsigned-5.6.10-050610-generic_5.6.10-050610.202005052301_amd64.deb
linux-modules-5.6.10-050610-generic_5.6.10-050610.202005052301_amd64.deb so when i run $ uname r it says:
~$ uname -r 5.6.10-050610-generic
i thought it would solve the problem, but i still get that same message from before installing. don’t i have the updated version of the headers they need? why is that a problem? what even is the problem?
While it’s really great that you decided to become a kernel tester, you seem to imply that may not have been your intent. Ubuntu 20.10 (and future 20.04.2) will use kernel 5.8, so your migration to 5.6 seems a bit of a dead-end.
2 Answers 2
As of today, the current package for both linux-generic and linux-headers-generic is 5.4.0.52.55 (not 5.4.0.51.54)
- You forgot to run sudo apt update . This is the most common reason. Simply do so, and your problem will magically vanish like a morning fog.
- If you recently did a release-upgrade, and you have other problems, then you might have had problems with your release-upgrade. It’s common when folks add non-Ubuntu packages, third-party sources, PPAs, and other strange stuff, and then hope that apt can handle it magically. It cannot, which breaks upgrades. This is moderately common with LTS-to-LTS upgrades where folks don’t keep track of what they installed two years ago. If this is what happened to you, then the easy solution is to backup your data and clean-install 20.04 to wipe away all that historical dreck. Best practice for release-upgrades is to uninstall all non-Ubuntu and wrong-version packages and sources before a release-upgrade; return your system to as close to stock condition as possible. Then release-upgrade, then restore your non-Ubuntu sources and package. Next time, try to do it that way.
- On rare occasions, a metapackage (like linux-headers-generic ) fails to upgrade. This usually happens when folks or their network connection are inconsistent about upgrades and delay normal apt upgrades for more than a few weeks. It’s most often associated with no-space-left-on-device errors. You can test for this by looking at the metapackage version. In this example, the version number is current (5.4.0.52.55), so my system does NOT have this problem, and the solution below won’t help.
$ dpkg -l | grep linux-image-generic ii linux-image-generic 5.4.0.52.55
If your system has an older version number that stubbornly won’t change, then use clean to delete the metapackage from your local cache (thereby forcing apt to download a fresh copy) then reinstall the metapackage. Finally run a normal apt upgrade.
sudo apt update sudo apt clean linux-headers-generic sudo apt install --reinstall linux-headers-generic sudo apt upgrade
sudo apt update sudo apt upgrade