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


Groups > linux.debian.user > #243106 > unrolled thread

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

Started by"Kiyanovski, Arthur" <akiyano@amazon.com>
First post2021-12-14 17:20 +0100
Last post2021-12-18 11:20 +0100
Articles 7 — 6 participants

Back to article view | Back to linux.debian.user


Contents

  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

#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>
Date2021-12-14 17:20 +0100
SubjectHow to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64 ?
Message-ID<DuiGZ-4c1-1@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#243109

FromChristian Britz <cbritz@t-online.de>
Date2021-12-14 18:00 +0100
Message-ID<DujjJ-4pO-25@gated-at.bofh.it>
In reply to#243106
On 2021-12-14 17:00 UTC+0100, Kiyanovski, Arthur wrote:
> Hi,
> 
> TL;DR - How do I get the Linux headers or source code for kernel 3.16.0-4-amd64 Debian 8.0?

Hi Arthur,

I don't find this kernel version on snapshots.debian.org. I assume that
AWS uses it's own kernel build which never was distributed by Debian.

Please issue the command uname -a. linux-3.16.84 might be really the
source for 3.16.0-4.

Regards,
Christian

[toc] | [prev] | [next] | [standalone]


#243110 — Re: How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64 ?

Fromdeloptes <emanoil.kotsev@deloptes.org>
Date2021-12-14 18:10 +0100
SubjectRe: How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64 ?
Message-ID<Dujtn-4Ik-3@gated-at.bofh.it>
In reply to#243106
Kiyanovski, Arthur wrote:

> 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 ☹

you sure you are not on ubuntu
https://howtoinstall.co/en/linux-headers-3.16.0-4-amd64

-- 
FCD6 3719 0FFB F1BF 38EA 4727 5348 5F1F DCFE BCB0

[toc] | [prev] | [next] | [standalone]


#243112 — Re: How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64

From"Thomas Schmitt" <scdbackup@gmx.net>
Date2021-12-14 18:20 +0100
SubjectRe: How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64
Message-ID<DujD3-4Ls-5@gated-at.bofh.it>
In reply to#243106
Hi,

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

Are you sure that this is the version code which you should be looking for
if interested in source ?

According to my mail archives uname -a on a Debian 8.1 says:
  Linux ts6 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux

The string "3.16.0-4" is found in the web for various different
"MP Debian 3.16...". But "3.16.7-ckt11-1" seems to be the actual source
version.

Debian 8.0 was released april 26th 2015.
This here is from april 23:

  https://launchpad.net/debian/+source/linux/3.16.7-ckt9-3

This snapshot of april 28

  https://snapshot.debian.org/archive/debian/20150428T040155Z/pool/main/l/linux/

offers:

  linux-headers-3.16.0-4-all-arm64_3.16.7-ckt9-3_arm64.deb
  linux-image-3.16.0-4-amd64_3.16.7-ckt9-3_amd64.deb
  linux-source-3.16_3.16.7-ckt9-3_all.deb


Have a nice day :)

Thomas

[toc] | [prev] | [next] | [standalone]


#243113 — Re: How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64

From"Thomas Schmitt" <scdbackup@gmx.net>
Date2021-12-14 18:30 +0100
SubjectRe: How to get linux headers or source code for debian 8.0 kernel 3.16.0-4-amd64
Message-ID<DujMJ-4Oi-1@gated-at.bofh.it>
In reply to#243112
Hi,

i wrote:
>   linux-headers-3.16.0-4-all-arm64_3.16.7-ckt9-3_arm64.deb

Wrong copy+paste. But there is an amd64 variant of it, too:
    linux-headers-3.16.0-4-all-amd64_3.16.7-ckt9-3_amd64.deb


Have a nice day :)

Thomas

[toc] | [prev] | [next] | [standalone]


#243121

FromDavid <bouncingcats@gmail.com>
Date2021-12-15 00:40 +0100
Message-ID<DupyO-8eV-15@gated-at.bofh.it>
In reply to#243106
On Wed, 15 Dec 2021 at 03:18, Kiyanovski, Arthur <akiyano@amazon.com> wrote:

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

The version number of a Debian kernel package is not the same
thing as the version number of the kernel that it contains.

For example, here is what I see on the system I am running
here today:

$ dpkg -l | grep linux-image
ii  linux-image-5.10.0-8-amd64           5.10.46-5
         amd64        Linux 5.10 for 64-bit PCs (signed)
$ uname -r
5.10.0-8-amd64
$ uname -v
#1 SMP Debian 5.10.46-5 (2021-09-23)

So, to know your kernel version, you need to ask
the system for 'uname -v'.

And then you can use that to search for the
kernel source package here:
  https://snapshot.debian.org/package/linux/
and then click on the link there to find the
binary package with the headers.

[toc] | [prev] | [next] | [standalone]


#243229

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2021-12-18 11:20 +0100
Message-ID<DvEYN-7k4-3@gated-at.bofh.it>
In reply to#243121

[Multipart message — attachments visible in raw view] — view raw

On Mi, 15 dec 21, 10:33:05, David wrote:
> On Wed, 15 Dec 2021 at 03:18, Kiyanovski, Arthur <akiyano@amazon.com> wrote:
> 
> > TL;DR - How do I get the Linux headers or source code for kernel 3.16.0-4-amd64 Debian 8.0?
> 
> The version number of a Debian kernel package is not the same
> thing as the version number of the kernel that it contains.
> 
> For example, here is what I see on the system I am running
> here today:
> 
> $ dpkg -l | grep linux-image
> ii  linux-image-5.10.0-8-amd64           5.10.46-5
>          amd64        Linux 5.10 for 64-bit PCs (signed)
> $ uname -r
> 5.10.0-8-amd64
> $ uname -v
> #1 SMP Debian 5.10.46-5 (2021-09-23)
> 
> So, to know your kernel version, you need to ask
> the system for 'uname -v'.

The same information is already provided by `dpkg -l` above ;)


When looking for Debian packages the version number provided by
`dpkg -l` or `apt list`, etc. should be used as it often doesn't match 
the software's internal version.


$ neomutt -v | head -1
NeoMutt 20180716

$ apt list --installed neomutt
Listing... Done
neomutt/oldstable,now 20180716+dfsg.1-1+deb10u2 arm64 [installed]
N: There is 1 additional version. Please use the '-a' switch to see it


Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web