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


Groups > linux.debian.user > #177003

apt-get source linux-image-$(uname -r) downloads incorrect version

From David Wittman <dwittman@gmail.com>
Newsgroups linux.debian.user
Subject apt-get source linux-image-$(uname -r) downloads incorrect version
Date 2017-01-26 01:50 +0100
Message-ID <t3Gqe-wu-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

I am trying to download the kernel source so that I can patch a kernel
module, but I keep finding that it's pulling a more recent kernel release
than the one I specify. IE:

```
vagrant@debian-jessie:~$ uname -r
3.16.0-4-amd64
vagrant@debian-jessie:~$ dpkg-query --show linux-image-$(uname -r)
linux-image-3.16.0-4-amd64 3.16.39-1
```

So what ends up happening is `apt-get source linux-image-$(uname -r)` pulls
the source for the kernel at 3.16.39-1 instead of 3.16.0-4 and my module
builds with the incorrect magicver. I know I can do things to work around
the magicver, but I'm just curious as to why I cannot pull the exact kernel
specified.

I've experienced similar troubles with `apt-get linux-source-$(uname -r)`.

Cheers,

Dave

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


Thread

apt-get source linux-image-$(uname -r) downloads incorrect version David Wittman <dwittman@gmail.com> - 2017-01-26 01:50 +0100
  Re: apt-get source linux-image-$(uname -r) downloads incorrect version Sven Hartge <sven@svenhartge.de> - 2017-01-26 10:10 +0100
  Re: Re: apt-get source linux-image-$(uname -r) downloads incorrect version David Wittman <dwittman@gmail.com> - 2017-01-27 04:10 +0100
    Re: apt-get source linux-image-$(uname -r) downloads incorrect  version Reco <recoverym4n@gmail.com> - 2017-01-27 07:40 +0100
    Re: apt-get source linux-image-$(uname -r) downloads incorrect version Sven Hartge <sven@svenhartge.de> - 2017-01-27 11:10 +0100

csiph-web