<div dir="ltr">I have tried to install linux headers but still showing the same error.<div><br>Here's the stack to process.<br>"<div><div>pi@raspberrypi:~ $ sudo dpkg -i linux-headers-4.9.31-v7+_4.9.31-v7+-2_armhf.deb </div><div>Selecting previously unselected package linux-headers-4.9.31-v7+.</div><div>(Reading database ... 132946 files and directories currently installed.)</div><div>Preparing to unpack linux-headers-4.9.31-v7+_4.9.31-v7+-2_armhf.deb ...</div><div>Unpacking linux-headers-4.9.31-v7+ (4.9.31-v7+-2) ...</div><div>dpkg: dependency problems prevent configuration of linux-headers-4.9.31-v7+:</div><div> linux-headers-4.9.31-v7+ depends on bc; however:</div><div> Package bc is not installed.</div><div><br></div><div>dpkg: error processing package linux-headers-4.9.31-v7+ (--install):</div><div> dependency problems - leaving unconfigured</div><div>Errors were encountered while processing:</div><div> linux-headers-4.9.31-v7+</div><div>pi@raspberrypi:~ $ lsmod | grep wireguard</div><div>pi@raspberrypi:~ $ sudo apt-get install wireguard-dkms wireguard-tools</div><div>Reading package lists... Done</div><div>Building dependency tree </div><div>Reading state information... Done</div><div>wireguard-dkms is already the newest version (0.0.20170726-1).</div><div>wireguard-tools is already the newest version (0.0.20170726-1).</div><div>You might want to run 'apt --fix-broken install' to correct these.</div><div>The following packages have unmet dependencies:</div><div> linux-headers-4.9.31-v7+ : Depends: bc but it is not going to be installed</div><div>E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).</div><div>pi@raspberrypi:~ $ sudo apt --fix-broken install</div><div>Reading package lists... Done</div><div>Building dependency tree </div><div>Reading state information... Done</div><div>Correcting dependencies... Done</div><div>The following additional packages will be installed:</div><div> bc</div><div>The following NEW packages will be installed:</div><div> bc</div><div>0 upgraded, 1 newly installed, 0 to remove and 855 not upgraded.</div><div>1 not fully installed or removed.</div><div>Need to get 101 kB of archives.</div><div>After this operation, 212 kB of additional disk space will be used.</div><div>Do you want to continue? [Y/n] Y</div><div>WARNING: The following packages cannot be authenticated!</div><div> bc</div><div>Install these packages without verification? [y/N] y</div><div>Get:1 <a href="http://deb.debian.org/debian">http://deb.debian.org/debian</a> unstable/main armhf bc armhf 1.06.95-9+b3 [101 kB]</div><div>Fetched 101 kB in 0s (226 kB/s)</div><div>Selecting previously unselected package bc.</div><div>(Reading database ... 148260 files and directories currently installed.)</div><div>Preparing to unpack .../bc_1.06.95-9+b3_armhf.deb ...</div><div>Unpacking bc (1.06.95-9+b3) ...</div><div>Processing triggers for install-info (5.2.0.dfsg.1-6) ...</div><div>Processing triggers for man-db (2.7.5-1~bpo8+1) ...</div><div>Setting up bc (1.06.95-9+b3) ...</div><div>Setting up linux-headers-4.9.31-v7+ (4.9.31-v7+-2) ...</div><div>make: Entering directory '/usr/src/linux-headers-4.9.31-v7+'</div><div> HOSTCC scripts/basic/fixdep</div><div> HOSTCC scripts/basic/bin2c</div><div> HOSTCC scripts/kconfig/conf.o</div><div> HOSTCC scripts/kconfig/zconf.tab.o</div><div> HOSTLD scripts/kconfig/conf</div><div>*** Default configuration is based on 'bcm2709_defconfig'</div><div>#</div><div># configuration written to .config</div><div>#</div><div>make: Leaving directory '/usr/src/linux-headers-4.9.31-v7+'</div><div>make: Entering directory '/usr/src/linux-headers-4.9.31-v7+'</div><div>scripts/kconfig/conf --silentoldconfig Kconfig</div><div> CHK include/config/kernel.release</div><div> UPD include/config/kernel.release</div><div> WRAP arch/arm/include/generated/asm/bitsperlong.h</div><div> WRAP arch/arm/include/generated/asm/clkdev.h</div><div> WRAP arch/arm/include/generated/asm/cputime.h</div><div> WRAP arch/arm/include/generated/asm/current.h</div><div> WRAP arch/arm/include/generated/asm/early_ioremap.h</div><div> WRAP arch/arm/include/generated/asm/emergency-restart.h</div><div> WRAP arch/arm/include/generated/asm/errno.h</div><div> WRAP arch/arm/include/generated/asm/exec.h</div><div> WRAP arch/arm/include/generated/asm/ioctl.h</div><div> WRAP arch/arm/include/generated/asm/ipcbuf.h</div><div> WRAP arch/arm/include/generated/asm/irq_regs.h</div><div> WRAP arch/arm/include/generated/asm/kdebug.h</div><div> WRAP arch/arm/include/generated/asm/local.h</div><div> WRAP arch/arm/include/generated/asm/local64.h</div><div> WRAP arch/arm/include/generated/asm/mm-arch-hooks.h</div><div> WRAP arch/arm/include/generated/asm/msgbuf.h</div><div> WRAP arch/arm/include/generated/asm/msi.h</div><div> WRAP arch/arm/include/generated/asm/param.h</div><div> WRAP arch/arm/include/generated/asm/parport.h</div><div> WRAP arch/arm/include/generated/asm/poll.h</div><div> WRAP arch/arm/include/generated/asm/preempt.h</div><div> WRAP arch/arm/include/generated/asm/resource.h</div><div> WRAP arch/arm/include/generated/asm/rwsem.h</div><div> WRAP arch/arm/include/generated/asm/seccomp.h</div><div> WRAP arch/arm/include/generated/asm/segment.h</div><div> WRAP arch/arm/include/generated/asm/sembuf.h</div><div> WRAP arch/arm/include/generated/asm/serial.h</div><div> WRAP arch/arm/include/generated/asm/shmbuf.h</div><div> WRAP arch/arm/include/generated/asm/siginfo.h</div><div> WRAP arch/arm/include/generated/asm/simd.h</div><div> WRAP arch/arm/include/generated/asm/sizes.h</div><div> WRAP arch/arm/include/generated/asm/socket.h</div><div> WRAP arch/arm/include/generated/asm/sockios.h</div><div> WRAP arch/arm/include/generated/asm/termbits.h</div><div> WRAP arch/arm/include/generated/asm/termios.h</div><div> WRAP arch/arm/include/generated/asm/timex.h</div><div> WRAP arch/arm/include/generated/asm/trace_clock.h</div><div> WRAP arch/arm/include/generated/asm/unaligned.h</div><div> CHK include/generated/uapi/linux/version.h</div><div> UPD include/generated/uapi/linux/version.h</div><div> CHK include/generated/utsrelease.h</div><div> UPD include/generated/utsrelease.h</div><div> GEN include/generated/mach-types.h</div><div> CC kernel/bounds.s</div><div> CHK include/generated/bounds.h</div><div> UPD include/generated/bounds.h</div><div> CHK include/generated/timeconst.h</div><div> UPD include/generated/timeconst.h</div><div> CC arch/arm/kernel/asm-offsets.s</div><div> CHK include/generated/asm-offsets.h</div><div> UPD include/generated/asm-offsets.h</div><div> CALL scripts/checksyscalls.sh</div><div>grep: scripts/../arch/x86/entry/syscalls/syscall_32.tbl: No such file or directory</div><div> HOSTCC scripts/dtc/dtc.o</div><div> HOSTCC scripts/dtc/flattree.o</div><div> HOSTCC scripts/dtc/fstree.o</div><div> HOSTCC scripts/dtc/data.o</div><div> HOSTCC scripts/dtc/livetree.o</div><div> HOSTCC scripts/dtc/treesource.o</div><div> HOSTCC scripts/dtc/srcpos.o</div><div> HOSTCC scripts/dtc/checks.o</div><div> HOSTCC scripts/dtc/util.o</div><div> HOSTCC scripts/dtc/dtc-lexer.lex.o</div><div> HOSTCC scripts/dtc/dtc-parser.tab.o</div><div> HOSTLD scripts/dtc/dtc</div><div> HOSTCC scripts/genksyms/genksyms.o</div><div> HOSTCC scripts/genksyms/parse.tab.o</div><div> SHIPPED scripts/genksyms/lex.lex.c</div><div> HOSTCC scripts/genksyms/lex.lex.o</div><div> HOSTLD scripts/genksyms/genksyms</div><div> CC scripts/mod/empty.o</div><div> HOSTCC scripts/mod/mk_elfconfig</div><div> MKELF scripts/mod/elfconfig.h</div><div> HOSTCC scripts/mod/modpost.o</div><div> CC scripts/mod/devicetable-offsets.s</div><div> GEN scripts/mod/devicetable-offsets.h</div><div> HOSTCC scripts/mod/file2alias.o</div><div> HOSTCC scripts/mod/sumversion.o</div><div> HOSTLD scripts/mod/modpost</div><div> HOSTCC scripts/kallsyms</div><div> HOSTCC scripts/pnmtologo</div><div> HOSTCC scripts/conmakehash</div><div> HOSTCC scripts/recordmcount</div><div> HOSTCC scripts/sortextable</div><div>make: Leaving directory '/usr/src/linux-headers-4.9.31-v7+'</div><div><br></div><div>-------- Uninstall Beginning --------</div><div>Module: wireguard</div><div>Version: 0.0.20170726-1</div><div>Kernel: 4.9.35+ (armv7l)</div><div>-------------------------------------</div><div><br></div><div>Status: Before uninstall, this module version was ACTIVE on this kernel.</div><div><br></div><div>wireguard.ko:</div><div> - Uninstallation</div><div> - Deleting from: /lib/modules/4.9.35+/kernel/net/</div><div> - Original module</div><div> - No original module was found for this module on this kernel.</div><div> - Use the dkms install command to reinstall any previous module version.</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: uninstall completed.</div><div><br></div><div>-------- Uninstall Beginning --------</div><div>Module: wireguard</div><div>Version: 0.0.20170726-1</div><div>Kernel: 4.9.35-v7+ (armv7l)</div><div>-------------------------------------</div><div><br></div><div>Status: Before uninstall, this module version was ACTIVE on this kernel.</div><div><br></div><div>wireguard.ko:</div><div> - Uninstallation</div><div> - Deleting from: /lib/modules/4.9.35-v7+/kernel/net/</div><div> - Original module</div><div> - No original module was found for this module on this kernel.</div><div> - Use the dkms install command to reinstall any previous module version.</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: uninstall completed.</div><div><br></div><div>------------------------------</div><div>Deleting module version: 0.0.20170726-1</div><div>completely from the DKMS tree.</div><div>------------------------------</div><div>Done.</div><div>Loading new wireguard-0.0.20170726-1 DKMS files...</div><div>It is likely that 4.9.35-v7+ belongs to a chroot's host</div><div>Building for 3.6-trunk-rpi, 4.9.31-v7+, 4.9.35+ and 4.9.35-v7+</div><div>Building initial module for 3.6-trunk-rpi</div><div>Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which</div><div>does not match this kernel/arch. This indicates that it should not be built.</div><div>Skipped.</div><div>Building initial module for 4.9.31-v7+</div><div>Done.</div><div><br></div><div>wireguard:</div><div>Running module version sanity check.</div><div> - Original module</div><div> - No original module exists within this kernel</div><div> - Installation</div><div> - Installing to /lib/modules/4.9.31-v7+/kernel/net/</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: install completed.</div><div>Building initial module for 4.9.35+</div><div>Done.</div><div><br></div><div>wireguard:</div><div>Running module version sanity check.</div><div> - Original module</div><div> - No original module exists within this kernel</div><div> - Installation</div><div> - Installing to /lib/modules/4.9.35+/kernel/net/</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: install completed.</div><div>Building initial module for 4.9.35-v7+</div><div>Done.</div><div><br></div><div>wireguard:</div><div>Running module version sanity check.</div><div> - Original module</div><div> - No original module exists within this kernel</div><div> - Installation</div><div> - Installing to /lib/modules/4.9.35-v7+/kernel/net/</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: install completed.</div><div><br></div><div>-------- Uninstall Beginning --------</div><div>Module: wireguard</div><div>Version: 0.0.20170726-1</div><div>Kernel: 4.9.31-v7+ (armv7l)</div><div>-------------------------------------</div><div><br></div><div>Status: Before uninstall, this module version was ACTIVE on this kernel.</div><div><br></div><div>wireguard.ko:</div><div> - Uninstallation</div><div> - Deleting from: /lib/modules/4.9.31-v7+/kernel/net/</div><div> - Original module</div><div> - No original module was found for this module on this kernel.</div><div> - Use the dkms install command to reinstall any previous module version.</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: uninstall completed.</div><div><br></div><div>-------- Uninstall Beginning --------</div><div>Module: wireguard</div><div>Version: 0.0.20170726-1</div><div>Kernel: 4.9.35+ (armv7l)</div><div>-------------------------------------</div><div><br></div><div>Status: Before uninstall, this module version was ACTIVE on this kernel.</div><div><br></div><div>wireguard.ko:</div><div> - Uninstallation</div><div> - Deleting from: /lib/modules/4.9.35+/kernel/net/</div><div> - Original module</div><div> - No original module was found for this module on this kernel.</div><div> - Use the dkms install command to reinstall any previous module version.</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: uninstall completed.</div><div><br></div><div>-------- Uninstall Beginning --------</div><div>Module: wireguard</div><div>Version: 0.0.20170726-1</div><div>Kernel: 4.9.35-v7+ (armv7l)</div><div>-------------------------------------</div><div><br></div><div>Status: Before uninstall, this module version was ACTIVE on this kernel.</div><div><br></div><div>wireguard.ko:</div><div> - Uninstallation</div><div> - Deleting from: /lib/modules/4.9.35-v7+/kernel/net/</div><div> - Original module</div><div> - No original module was found for this module on this kernel.</div><div> - Use the dkms install command to reinstall any previous module version.</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: uninstall completed.</div><div><br></div><div>------------------------------</div><div>Deleting module version: 0.0.20170726-1</div><div>completely from the DKMS tree.</div><div>------------------------------</div><div>Done.</div><div>Loading new wireguard-0.0.20170726-1 DKMS files...</div><div>It is likely that 4.9.35-v7+ belongs to a chroot's host</div><div>Building for 3.6-trunk-rpi, 4.9.31-v7+, 4.9.35+ and 4.9.35-v7+</div><div>Building initial module for 3.6-trunk-rpi</div><div>Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which</div><div>does not match this kernel/arch. This indicates that it should not be built.</div><div>Skipped.</div><div>Building initial module for 4.9.31-v7+</div><div>Done.</div><div><br></div><div>wireguard:</div><div>Running module version sanity check.</div><div> - Original module</div><div> - No original module exists within this kernel</div><div> - Installation</div><div> - Installing to /lib/modules/4.9.31-v7+/kernel/net/</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: install completed.</div><div>Building initial module for 4.9.35+</div><div>Done.</div><div><br></div><div>wireguard:</div><div>Running module version sanity check.</div><div> - Original module</div><div> - No original module exists within this kernel</div><div> - Installation</div><div> - Installing to /lib/modules/4.9.35+/kernel/net/</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: install completed.</div><div>Building initial module for 4.9.35-v7+</div><div>Done.</div><div><br></div><div>wireguard:</div><div>Running module version sanity check.</div><div> - Original module</div><div> - No original module exists within this kernel</div><div> - Installation</div><div> - Installing to /lib/modules/4.9.35-v7+/kernel/net/</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: install completed.</div><div>pi@raspberrypi:~ $ lsmod | grep wireguard</div><div>pi@raspberrypi:~ $ ip link add dev wg0 type wireguard</div><div>RTNETLINK answers: Operation not permitted</div><div>pi@raspberrypi:~ $ sudo apt-get install wireguard-dkms wireguard-tools</div><div>Reading package lists... Done</div><div>Building dependency tree </div><div>Reading state information... Done</div><div>wireguard-dkms is already the newest version (0.0.20170726-1).</div><div>wireguard-tools is already the newest version (0.0.20170726-1).</div><div>0 upgraded, 0 newly installed, 0 to remove and 855 not upgraded.</div><div>pi@raspberrypi:~ $ lsmod | grep wireguard</div><div>pi@raspberrypi:~ $ ip link add dev wg0 type wireguard</div><div>RTNETLINK answers: Operation not permitted</div><div>pi@raspberrypi:~ $ sudo apt-get purge wireguard-dkms wireguard-tools</div><div>Reading package lists... Done</div><div>Building dependency tree </div><div>Reading state information... Done</div><div>The following packages were automatically installed and are no longer required:</div><div> dkms libmnl0 linux-headers-3.6-trunk-common linux-headers-3.6-trunk-rpi linux-kbuild-3.6</div><div>Use 'sudo apt autoremove' to remove them.</div><div>The following packages will be REMOVED:</div><div> wireguard-dkms* wireguard-tools*</div><div>0 upgraded, 0 newly installed, 2 to remove and 855 not upgraded.</div><div>After this operation, 918 kB disk space will be freed.</div><div>Do you want to continue? [Y/n] Y</div><div>(Reading database ... 148279 files and directories currently installed.)</div><div>Removing wireguard-dkms (0.0.20170726-1) ...</div><div><br></div><div>-------- Uninstall Beginning --------</div><div>Module: wireguard</div><div>Version: 0.0.20170726-1</div><div>Kernel: 4.9.31-v7+ (armv7l)</div><div>-------------------------------------</div><div><br></div><div>Status: Before uninstall, this module version was ACTIVE on this kernel.</div><div><br></div><div>wireguard.ko:</div><div> - Uninstallation</div><div> - Deleting from: /lib/modules/4.9.31-v7+/kernel/net/</div><div> - Original module</div><div> - No original module was found for this module on this kernel.</div><div> - Use the dkms install command to reinstall any previous module version.</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: uninstall completed.</div><div><br></div><div>-------- Uninstall Beginning --------</div><div>Module: wireguard</div><div>Version: 0.0.20170726-1</div><div>Kernel: 4.9.35+ (armv7l)</div><div>-------------------------------------</div><div><br></div><div>Status: Before uninstall, this module version was ACTIVE on this kernel.</div><div><br></div><div>wireguard.ko:</div><div> - Uninstallation</div><div> - Deleting from: /lib/modules/4.9.35+/kernel/net/</div><div> - Original module</div><div> - No original module was found for this module on this kernel.</div><div> - Use the dkms install command to reinstall any previous module version.</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: uninstall completed.</div><div><br></div><div>-------- Uninstall Beginning --------</div><div>Module: wireguard</div><div>Version: 0.0.20170726-1</div><div>Kernel: 4.9.35-v7+ (armv7l)</div><div>-------------------------------------</div><div><br></div><div>Status: Before uninstall, this module version was ACTIVE on this kernel.</div><div><br></div><div>wireguard.ko:</div><div> - Uninstallation</div><div> - Deleting from: /lib/modules/4.9.35-v7+/kernel/net/</div><div> - Original module</div><div> - No original module was found for this module on this kernel.</div><div> - Use the dkms install command to reinstall any previous module version.</div><div><br></div><div>depmod...</div><div><br></div><div>DKMS: uninstall completed.</div><div><br></div><div>------------------------------</div><div>Deleting module version: 0.0.20170726-1</div><div>completely from the DKMS tree.</div><div>------------------------------</div><div>Done.</div><div>Removing wireguard-tools (0.0.20170726-1) ...</div><div>dpkg: warning: while removing wireguard-tools, directory '/etc/wireguard' not empty so not removed</div><div>Processing triggers for man-db (2.7.5-1~bpo8+1) ...</div></div><div><br></div><div>"</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 5, 2017 at 3:38 PM, Sahil Gupta <span dir="ltr"><<a href="mailto:sg5414@g.rit.edu" target="_blank">sg5414@g.rit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br>I am not able to setup Wireguard interface on Raspberry pi.<br><br>Error:<br>RTNETLINK answers: Operation not supported<div><br><br>See the stack:<br>"<div><div>pi@raspberrypi:~ $ cd /etc/wireguard/</div><div>pi@raspberrypi:/etc/wireguard $ l</div><div>-bash: l: command not found</div><div>pi@raspberrypi:/etc/wireguard $ ls</div><div>publickey wg0.conf</div><div>pi@raspberrypi:/etc/wireguard $ history | grep wg0</div><div> 15 history | grep wg0</div><div>pi@raspberrypi:/etc/wireguard $ ip link add wg0 type wireguard</div><div>RTNETLINK answers: Operation not permitted</div><div>pi@raspberrypi:/etc/wireguard $ sudo su</div><div>root@raspberrypi:/etc/<wbr>wireguard# wg-quick up wg0</div><div>Warning: `/etc/wireguard/wg0.conf' is world accessible</div><div>[#] ip link add wg0 type wireguard</div><div>RTNETLINK answers: Operation not supported</div><div>`wg0` is not a valid WireGuard interface</div><div>Usage: wg show { <interface> | all | interfaces } [public-key | private-key | listen-port | fwmark | peers | preshared-keys | endpoints | allowed-ips | latest-handshakes | transfer | persistent-keepalive | dump]</div><div>root@raspberrypi:/etc/<wbr>wireguard# wg show</div><div>root@raspberrypi:/etc/<wbr>wireguard# wg show all</div><div>root@raspberrypi:/etc/<wbr>wireguard# </div></div><div><br></div><div>"</div><div><br></div><div>Any pointers will be appreciated.</div><div><br></div><div>Thanks<span class="HOEnZb"><font color="#888888"><br>Sahil Gupta</font></span></div></div></div>
</blockquote></div><br></div>