How to install kernel headers in vm ?

499 views
Skip to first unread message

bert

unread,
Aug 11, 2016, 10:33:35 AM8/11/16
to qubes-users
Need to install a driver for an usb wlan stick but I always get these errors


this command always gives me an error: (dkms)
sudo dkms install 8192cu/1.10

Error! Your kernel headers for kernel 4.1.13-9.pvops.qubes.x86_64 cannot be found. Please install the linux-headers-4.1.13-9.pvops.qubes.x86_64 package, or use the --kernelsourcedir option to tell DKMS where it's located


--------------------------------
$ sudo apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential dkms git
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package linux-headers-4.1.13-9.pvops.qubes.x86_64
E: Couldn't find any package by regex 'linux-headers-4.1.13-9.pvops.qubes.x86_64'
E: Package 'linux-headers-generic' has no installation candidate
user@wlan-stick:~$


------------------


how can I install the linux kernel headers in my debian /fedora standalone vm ?

Marek Marczykowski-Górecki

unread,
Aug 11, 2016, 11:58:57 AM8/11/16
to bert, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Currently kernel headers for default kernels are packaged only for
Fedora VMs (where you ca install it as kernel-devel package). If you
want to build some kernel module on Debian VM, you have those options:
1. Use kernel from Debian repository [1]
2. Extract kernel-devel[2] manually and use --kernelsourcedir option
3. Compile kernel manually

- From the above list, the first option surely works, but will result in
older kernel (currently Debian 8 uses 3.16 kernel). The other options
should also works, but I haven't tried.

[1] https://www.qubes-os.org/doc/managing-vm-kernel/#tocAnchor-1-1-3
[2]
http://yum.qubes-os.org/r3.1/current/vm/fc23/rpm/kernel-devel-4.1.13-9.pvops.qubes.x86_64.rpm

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXrKC6AAoJENuP0xzK19csj+sH/ioxs/T0pMHp9X7E2LBPguCn
uaehk+knh0eCClma/YCcjGQtNKm4YvW7+Qj+YqG1c0dme78XY7jx4ALKiQ8+n7R1
XfaMzuiYAFaMwXnpQivKw388GHtocuhQp95vbFWC1nosXJ4GG1gDGcl7NrrtFaUS
5RyE0ZuCOI3+Kvyu1/KC1ENg+KGCG0YAuQ+th0inIMK0CywKKd/nKoPjtRCBieFv
pCyGVv3dok1Xxj3/si0eLOHmWJnJiqTgVJ1g87uIfOYiuI2I5vGvNzRuw4noH6YI
29Wj7bI7Eo/SI2PMcCIpGgdddYQlv1iQeOA9ilZ1g0xLJfiv629YWeTvARbqkVI=
=osSo
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages