Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #243106

How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64 ?

From "Kiyanovski, Arthur" <akiyano@amazon.com>
Newsgroups linux.debian.user
Subject How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64 ?
Date 2021-12-14 17:20 +0100
Message-ID <DuiGZ-4c1-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

TL;DR - How do I get the Linux headers or source code for kernel 3.16.0-4-amd64 Debian 8.0?

What I tried and failed doing:
---------------------------------------
I have an AWS instance with kernel:
3.16.0-4-amd64

apt-cache search doesn’t find a relevant package.

I tried updating the etc/apt/sources.list file with the archive so it now looks like this:

deb http://cloudfront.debian.net/debian jessie main
deb-src http://cloudfront.debian.net/debian jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
deb http://cloudfront.debian.net/debian jessie-updates main
deb-src http://cloudfront.debian.net/debian jessie-updates main
deb http://archive.debian.org/debian jessie main contrib non-free
deb-src http://archive.debian.org/debian jessie main contrib non-free

At first running apt-get update gave me an error 
W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717

Then I used the solution of going back in time described in https://www.reddit.com/r/debian/comments/g9is3p/debian_8_jessie_keyexpired_drive_my_crazy/:
date 010100002020; [apt-get update / upgrade / whatever]; ntpdate 2.pool.ntp.org

This stopped the GPG error but I still don’t see the headers package.

I tried getting the sources for the Linux-image package like this:
sudo apt-get source linux-image-3.16.0-4-amd64

But it got the sources for kernel linux-3.16.84 and not 3.16.0-4

Can you please help me? I need to make sure my code compiles on this kernel but I can't get its sources or headers ☹

Thanks!
Arthur

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to get linux headers or source code for debian 8.0 kernel  3.16.0-4-amd64 ? "Kiyanovski, Arthur" <akiyano@amazon.com> - 2021-12-14 17:20 +0100
  Re: How to get linux headers or source code for debian 8.0 kernel  3.16.0-4-amd64 ? Christian Britz <cbritz@t-online.de> - 2021-12-14 18:00 +0100
  Re: How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64 ? deloptes <emanoil.kotsev@deloptes.org> - 2021-12-14 18:10 +0100
  Re: How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64 "Thomas Schmitt" <scdbackup@gmx.net> - 2021-12-14 18:20 +0100
    Re: How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64 "Thomas Schmitt" <scdbackup@gmx.net> - 2021-12-14 18:30 +0100
  Re: How to get linux headers or source code for debian 8.0 kernel  3.16.0-4-amd64 ? David <bouncingcats@gmail.com> - 2021-12-15 00:40 +0100
    Re: How to get linux headers or source code for debian 8.0 kernel  3.16.0-4-amd64 ? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-12-18 11:20 +0100

csiph-web