Unable to locate package linux-headers

524 views
Skip to first unread message

TimMeskov

unread,
Feb 1, 2017, 4:43:39 PM2/1/17
to qubes...@googlegroups.com
Hello
I'm trying to install kernel in debian 9 but some errors show up
Running this command
sudo apt-get install linux-headers-$(uname -r)

the result is
Unable to locate package linux-headers-4.4.38.11.pvops.qubes.x86_64
Couldn't find any package by glob 'linux-headers-4.4.38.11.pvops.qubes.x86_64'
Couldn't find any package by regex 'linux-headers-4.4.38.11.pvops.qubes.x86_64'


with this

sudo apt-cache search linux-headers

says me there is linux-headers-4.9.0-1, then I install it but running the first command the same answer appears.
Also with apt-get update, upgrade, dist-upgrade, reboot and another time

sudo apt-get install linux-headers-$(uname -r)



These are my source lists :
 
   /etc/apt/sources.list
 
deb http://deb.debian.org/debian stretch main contrib non-free
#deb-src http://http.deb.debian.net/debian main/stretch main contrib non-free
 
deb http://security.debian.org stretch/updates main contrib non-free
#deb-src http://security.debian.org stretch/updates main contrib non-free
 
   /etc/apt/sources.list.d
 
# Main qubes updates repository
deb [arch=amd64] http://deb.qubes-os.org/r3.2/vm stretch main
#deb-src http://deb.qubes-os.org/r3.2/vm stretch main
 
#Qubes updates candidates repository
#deb [arch=amd64] http://deb.qubes-os.org/r3.2/vm stretch-testing main
#deb-src http://deb.qubes-os.org/r3.2/vm stretch-testing main
 
#Qubes security updates testing repository
#deb [arch=amd64] http://deb.qubes-os.org/r3.2/vm stretch-securitytesting main
#deb-src http://deb.qubes-os.org/r3.2/vm stretch-securitytesting main
 
#Qubes experimental/unstable repository
#deb [arch=amd64] http://deb.qubes-os.org/r3.2/vm stretch-unstable main
#deb-src http://deb.qubes-os.org/r3.2/vm stretch-unstable main
 
Thank you. Hoping to solve it.




Aneer Qadri

unread,
Feb 1, 2017, 9:16:04 PM2/1/17
to qubes...@googlegroups.com
'TimMeskov' via qubes-users:
I'm not sure if this is the only way to do it but this is how I
aproached it when I had this problem

You have to install the headers specific to the debian architecture that
you're using. You won't find the qubes headers, but you will find the
headers that you would have used if debian was running bare metal on
your device.

https://packages.debian.org/search?searchon=names&keywords=linux-headers

Download whichever one of those corresponds to your architecture. If
you're not sure, download a debian live iso and burn it then run echo
linux-headers-$(uname -r) or something like that in there.


TimMeskov

unread,
Feb 3, 2017, 12:55:50 PM2/3/17
to qubes...@googlegroups.com
I followed this procedure:
1. Download debian-8 template
2. Installed linux-headers 3.16.0-4-amd64
3. Upgraded debian-8 to debian-9
4. apt-get update && apt-get dist-upgrade in debian-9, have downloaded kernel 4.9.0-1-amd64

Before remove the old kernel with autoremove, I try to install the new with dkms command like described in doc, but the output is:

Error! bad return status for module build on kernel 4.9.0-1-amd64 (x86_64)
Consult /var/lib/dkms/u2mfn/3.2.3/build/make.log

Aneer Qadri

unread,
Feb 4, 2017, 5:37:08 PM2/4/17
to qubes...@googlegroups.com
'TimMeskov' via qubes-users:
Could you paste what /var/lib/dkms/u2mfn/3.2.3/build/make.log says?

Reply all
Reply to author
Forward
0 new messages