Bug#1022746: please provide linux-image-generic / linux-headers-generic
Package: linux
Severity: normal
Dear maintainer,
In Debian, linux-headers-generic is a virtual package.
https://packages.debian.org/bullseye/linux-headers-generic
In Ubuntu, linux-headers-generic is a real package.
https://packages.ubuntu.com/linux-headers-generic
It depends at time of writing on linux-headers-5.19.0-21-generic which
then somehow pulls the architecture specific kernel headers package.
What's the advantage of having a linux-headers-generic package?
Instructions to install packages often look like this:
sudo apt install some-package-that-builds-a-kernel-module
linux-headers-$(dpkg --print-architecture)
The part "$(dpkg --print-architecture)" is hard to type, remember for
many users. Bash tab competition is unsupported.
By comparison, the following looks nicer.
sudo apt install some-package-that-builds-a-kernel-module
linux-headers-generic
But once linux-headers-generic exists, this could could be simplified
even further. some-package-that-builds-a-kernel-module then could have a
'Depends: linux-headers-generic'. Then it could be as simple as:
sudo apt install some-package-that-builds-a-kernel-module
The internet is full with people asking questions because package
installation failed due to missing kernel headers packages.
Could this please be improved?
Cheers,
Patrick
Reply to: