LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-22-2020, 08:40 AM   #1
Mikellino
LQ Newbie
 
Registered: Mar 2020
Posts: 4

Rep: Reputation: Disabled
Red face Where can I find linux-headers version 3.1.7 on debian


I compile a backports package from these sources: https://mirrors.edge.kernel.org/pub/...table/v5.5.11/
After entering the make command, I see an error:
Code:
/--------------
| Your kernel headers are incomplete/not installed.
| Please install kernel headers, including a .config
| file or use the KLIB/KLIB_BUILD make variables to
| set the kernel to build against, e.g.
|   make KLIB=/lib/modules/3.1.7/
| to compile/install for the installed kernel 3.1.7
| (that isn't currently running.)
\--
make[1]: *** [Makefile:41: modules] Error 1
make: *** [Makefile:30: default] Error 2
I did not find kernel headers with version 3.1.7 in google, debian, no anywhere.
How then to build this package? I have debian 10
 
Old 03-22-2020, 08:55 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 19
Posts: 6,152
Blog Entries: 21

Rep: Reputation: 3089Reputation: 3089Reputation: 3089Reputation: 3089Reputation: 3089Reputation: 3089Reputation: 3089Reputation: 3089Reputation: 3089Reputation: 3089Reputation: 3089
Might help

https://packages.debian.org/search?k...=linux-headers

Next time you search. You were looking for Debian Squeeze headers. I think Wheezy started using 3.2.
You might have to explore more in my link to find the exact match you need.

I just pointed you in a general direction.



Code:
harry@biker:~
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Last edited by rokytnji; 03-22-2020 at 09:00 AM.
 
Old 03-22-2020, 12:48 PM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,809

Rep: Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869
The kernel 3.1.7 was released in January of 2012, debian 10 uses version 4.19. What is your target platform?
 
Old 03-26-2020, 09:41 PM   #4
Mikellino
LQ Newbie
 
Registered: Mar 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
Arrow

Quote:
Originally Posted by pan64 View Post
The kernel 3.1.7 was released in January of 2012, debian 10 uses version 4.19. What is your target platform?
I just need to compile, backports-4.19.23-1 requires these headers when entering make. Nowhere in the documentation does it say how to change headers to compile
 
Old 03-26-2020, 09:45 PM   #5
Mikellino
LQ Newbie
 
Registered: Mar 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rokytnji View Post
Might help
I just pointed you in a general direction.
Only 3.16.0-10 is found through the search, and backports-4.19.23-1 requires a default of 3.1.7? Why it happens
 
Old 03-26-2020, 09:51 PM   #6
Mikellino
LQ Newbie
 
Registered: Mar 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
I realized what the problem is. The following lines are in the Makefile:
Code:
SHELL := /bin/bash
KLIB := /lib/modules/$(shell uname -r)/
uname -r in my console produces: 4.19.0-8-amd64
But for some reason, the Makefile is set to 3.1.7! This is some kind of bug.
 
Old 03-27-2020, 01:02 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,809

Rep: Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869Reputation: 4869
so you need the kernel headers for 4.19.0-8-amd64
on debian the package name is: linux-headers-<version>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to find headers for Linux version zephyr93 Linux - Newbie 5 07-22-2016 05:05 PM
[SOLVED] Chapter 6.7. Linux-3.16.2 API Headers , errors on installation of API headers JimmyJ1776 Linux From Scratch 9 02-17-2015 09:29 PM
Why Does Linux Headers Keep Including Too Many Headers? minivy Linux - Kernel 2 12-07-2011 02:16 PM
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb SUSE / openSUSE 2 11-28-2009 11:12 AM
Difference between packages linux-headers-foo and linux-headers-foo-generic? jhwilliams Ubuntu 1 10-19-2009 05:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration