1
aptitude search linux-headers

provides this:

p   linux-headers-3.16.0-4-all      - All header files for Linux 3.16 (meta-pack
p   linux-headers-3.16.0-4-all-amd6 - All header files for Linux 3.16 (meta-pack
i   linux-headers-3.16.0-4-amd64    - Header files for Linux 3.16.0-4-amd64     
i A linux-headers-3.16.0-4-common   - Common header files for Linux 3.16.0-4    
p   linux-headers-amd64             - Header files for Linux amd64 configuration

but i need to get 32 bit kernel headers

how to do that with apt?

1

It required to modify /etc/apt/sources.list adding i386 to downloadable architectures like that:

deb [arch=amd64,i386] http://httpredir.debian.org/debian/ jessie main contrib 

After that you need to make

apt-get update
dpkg --add-architecture i386
apt-get update

and to install package for i386 architecture:

apt-get install linux-headers-3.16.0-4-686-pae:i386
| improve this answer | |
  • Modifying the sources.list is not necessary. – Faheem Mitha Jun 10 '15 at 1:05
  • Especially not with a Quantal source on a Jessie system! – Stephen Kitt Jun 10 '15 at 7:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.