Hii Team ,
We are facing Linux-headers issue in our BananapiR2 box while installing wire guard . We have browsed so many sites , but unable to fetch the best one . Please advise for the same .
apt search linux-headers-$(uname -r)
Sorting… Done
Full Text Search… Done
pi@bpi-iot-ros-ai:~$ uname -r
4.4.70-BPI-R2-Kernel
pi@bpi-iot-ros-ai:~$ sudo apt upgrade --fix-missing
[sudo] password for pi:
^Csudo: 1 incorrect password attempt
pi@bpi-iot-ros-ai:~$ sudo apt upgrade --fix-missing
[sudo] password for pi:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages have been kept back:
docker-ce
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
pi@bpi-iot-ros-ai:~$ apt install linux-headers-$(uname -r)
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
pi@bpi-iot-ros-ai:~$ sudo apt install linux-headers-$(uname -r)
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux-headers-4.4.70-BPI-R2-Kernel
E: Couldn’t find any package by glob ‘linux-headers-4.4.70-BPI-R2-Kernel’
E: Couldn’t find any package by regex ‘linux-headers-4.4.70-BPI-R2-Kernel’
pi@bpi-iot-ros-ai:~$ cd /usr/src
pi@bpi-iot-ros-ai:/usr/src$ ls
linux-headers-4.4.0-198 linux-headers-4.4.0-198-generic wireguard-1.0.20201112
pi@bpi-iot-ros-ai:/usr/src$ uname -r
4.4.70-BPI-R2-Kernel
Thanks & regards Sachin Bansal