我正在尝试安装内核版本3.4.61+和Debian版本7.1的linux头。
我输入了以下命令:
apt-get update
apt-get install linux-headers-$(uname -r)在最后一个命令中,我总是得到一个错误:
E: Unable to locate package linux-headers-3.4.61
E: Couldn't find any package by regex 'linux-headers-3.4.61'顺便说一句:这都是基于Cubie载货车/Cubieboard3 3的。
发布于 2016-12-11 00:05:10
以下是你可能需要做的事
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发布于 2014-03-04 08:02:50
你可以先搜索,然后选择最接近的。
例如,在我的系统中:
$ 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所以我可以安装这三个中的任何一个。
发布于 2018-04-15 13:36:21
检查Source.list文件以包含存储库条目。你可以在- https://docs.kali.org/general-use/kali-linux-sources-list-repositories找到他们.编辑完文件后,保存它并运行"apt-get更新& apt-get升级“。现在运行“apt install linux-headers$(uname -r)”
https://stackoverflow.com/questions/22165929
复制相似问题