csn*_*ewb 11 linux debian linux-kernel
我正在尝试为我的内核版本3.4.61+和Debian版本7.1安装linux-headers
我输入了这个命令:
apt-get update
apt-get install linux-headers-$(uname -r)
Run Code Online (Sandbox Code Playgroud)
在最后一个命令我总是得到一个错误:
E: Unable to locate package linux-headers-3.4.61
E: Couldn't find any package by regex 'linux-headers-3.4.61'
Run Code Online (Sandbox Code Playgroud)
顺便说一句:这一切都基于Cubietruck/Cubieboard3
Lee*_*hem 13
您可以先搜索,然后选择最近的一个.
例如,在我的系统上:
$ apt-cache search linux-headers
linux-headers-3.2.0-4-all - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-all-amd64 - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-amd64 - Header files for Linux 3.2.0-4-amd64
Run Code Online (Sandbox Code Playgroud)
所以我可以安装这三个中的任何一个.
这是您可能需要做的
sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-headers-$(uname -r) # This should work now
Run Code Online (Sandbox Code Playgroud)